Giter Site home page Giter Site logo

Comments (20)

locks avatar locks commented on June 16, 2024

Thanks for the ping!

I was actually instructed to open a new RFC for the pod structure so all the details can be hashed out.
This will enable ember-cli to then make pod structure the default, which IIRC is the current intent.
That's my rationale for using it in the file paths.

I'm confused by your example @stevekinney, since globals are to be deprecated, but I would include the
file path anyway, it's very easy to get lost otherwise if you're new to it.
I've also been including the imports and anything i feel necessary (e.g. https://github.com/emberjs/guides/pull/8/files#diff-98f6b706ad0759bf694f2cb81ce0d495R74) to make it self-contained.

from guides.

stevekinney avatar stevekinney commented on June 16, 2024

Sounds good. (Yea, a big point is to get rid of the globalsβ€”I was only using it as an example where the file name might not be important.)

from guides.

joostdevries avatar joostdevries commented on June 16, 2024

@stevekinney excellent point. my thoughts:

  • use foo and bar for pointless stuff.
  • whether or not we advise pods in the guides is something I'd like @tomdale and @stefanpenner s take on.

from guides.

stefanpenner avatar stefanpenner commented on June 16, 2024

whether or not we advise pods in the guides is something I'd like @tomdale and @stefanpenner s take on.

i would like to , but their are several different and potentially confusing manifestations of pods. Maybe not yet? ... @tomdale thoughts?

from guides.

locks avatar locks commented on June 16, 2024

@stefanpenner I'll open an RFC for pod structure this week as suggested by @wycats, so we clear it up. Sounds good?

from guides.

stefanpenner avatar stefanpenner commented on June 16, 2024

@stefanpenner I'll open an RFC for pod structure this week as suggested by @wycats, so we clear it up. Sounds good?

yes. Also, relevant POD related ember-cli issues: https://github.com/ember-cli/ember-cli/labels/pod Worth reviewing for the RFC.

from guides.

stevekinney avatar stevekinney commented on June 16, 2024

#13 is tangentially related. How do we want to call various controllers, routes, etc. outside of code samples? Refer to them by file name? controller:application? Keep the current format?

from guides.

tomdale avatar tomdale commented on June 16, 2024

I don't have a strong opinion either way. All I'd ask is:

  1. Make sure the guides and Ember CLI generators are in alignment.
  2. Make sure any remaining issues with pods are hashed out.

If in doubt, let's start with non-pods and switch over. Versioned guided give us a lot more flexibility to change in the future. I don't want this guide revamp to end up getting blocked on pod implementation details.

from guides.

joostdevries avatar joostdevries commented on June 16, 2024

Related, maybe it's smart to hint people to use ember generate wherever possible.

from guides.

nicolechung avatar nicolechung commented on June 16, 2024

Does the POC of Ember cli work with a pods structure? http://jsbin.com/zonuhofufo/1/edit?html,output

from guides.

trek avatar trek commented on June 16, 2024

I have thoughts on where file names should go. http://commonmark.org/ defines the area we normally put the language label in "fenced code" as simply "metadata".

So, where we normally put

```javascript
var someCode;

Could actually contain any data we'd like. We have a custom highlighter that outputs particular markup/styles for specific languages.

The spec allows you to put any meta data in that location. Language is just a common use.

Instead of comments to denote file names, I'd prefer if we did this:

```app/templates/foo.hbs
{{rock-on}}

This should do three things:

  • continue to detect bare named language fences
  • begin to detect language name from file path fences
  • output nice markup/style that decorates an HTML code block something that shows file location

from guides.

stevekinney avatar stevekinney commented on June 16, 2024

@trek Wow, I really like that idea.

from guides.

trek avatar trek commented on June 16, 2024

Can you rope in @gregone and/or @danmcclain to help with the visual design and CSS for a change like this?

from guides.

locks avatar locks commented on June 16, 2024

@trek πŸ‘ had thought of something similar myself, but didn't know about the meta data thing.

from guides.

joostdevries avatar joostdevries commented on June 16, 2024

@trek Looks amazing. I actually think the original issue here has been resolved (we will not use POD syntax for now). Maybe it's best to either rename this issue or close & open a new one for the new code blocks

from guides.

danmcclain avatar danmcclain commented on June 16, 2024

How's something like this (don't mind the colors for now...unless you like them, then it was intentional πŸ˜‰)
ember js - templates the application template 2015-03-05 13-45-05

from guides.

locks avatar locks commented on June 16, 2024

πŸ‘
On 5 Mar 2015 18:45, "Dan McClain" [email protected] wrote:

How's something like this (don't mind the colors for now...unless you like
them, then it was intentional [image: πŸ˜‰])
[image: ember js - templates the application template 2015-03-05 13-45-05]
https://cloud.githubusercontent.com/assets/144138/6511903/e7978fd2-c33d-11e4-9135-4b579526f74e.png

β€”
Reply to this email directly or view it on GitHub
#12 (comment).

from guides.

danmcclain avatar danmcclain commented on June 16, 2024

The markup is super basic for it too, all we have to add is

<thead>
  <tr>
    <td colspan="2">File name</td>
  </tr>
</thead>

To the top of the <table> generated by the highlighter. The screenshot I posted was one without any styles applied. We can tweak the look futher if needed

from guides.

joostdevries avatar joostdevries commented on June 16, 2024

πŸ‘

from guides.

trek avatar trek commented on June 16, 2024

actually think the original issue here has been resolved

moved to #30

from guides.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.