Comments (20)
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.
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.
@stevekinney excellent point. my thoughts:
- use
foo
andbar
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.
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.
@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 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.
#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.
I don't have a strong opinion either way. All I'd ask is:
- Make sure the guides and Ember CLI generators are in alignment.
- 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.
Related, maybe it's smart to hint people to use ember generate
wherever possible.
from guides.
Does the POC of Ember cli work with a pods structure? http://jsbin.com/zonuhofufo/1/edit?html,output
from guides.
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.
@trek Wow, I really like that idea.
from guides.
Can you rope in @gregone and/or @danmcclain to help with the visual design and CSS for a change like this?
from guides.
@trek π had thought of something similar myself, but didn't know about the meta data thing.
from guides.
@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.
How's something like this (don't mind the colors for now...unless you like them, then it was intentional π)
from guides.
π
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.
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.
π
from guides.
actually think the original issue here has been resolved
moved to #30
from guides.
Related Issues (20)
- Add a section on promises to the JS primer HOT 1
- Give an example for controller usage HOT 1
- Make first paragraph of custom adapters more beginner friendly
- In ember tutorials: acceptance tests now fail after Mirage is added HOT 2
- Explain `.[]` before `.@each` in "Computed Properties and Aggregate Data" HOT 2
- [Tutorial] autocomplete component example documentation bug
- [Tutorial] this.on referent does not exist HOT 1
- [Tutorial] Tests Fail With 404 on /api/rentals after Ember Data step HOT 5
- [Tutorial] Integration test fails on triggerKeyEvent() HOT 1
- Link to lookup API HOT 2
- Brace expansion on non-nested properties? HOT 2
- Update core concepts diagram
- More clear polymorphism example code HOT 1
- Update the guides to remove usage of `.get`
- Document "Optional Features"
- Make it clearer where actions can be passed & used HOT 2
- creating records with relationships needs more detail HOT 2
- Document {{let}} helper as a built-in helper HOT 3
- Off by 1 error in object-model/computed-properties-and-aggregate-data/ HOT 3
- NOTICE - THIS REPOSITORY IS DEPRECATED
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guides.