Comments (3)
👍 The template case already works. For everything else, you currently must use an underscore separator (e.g. /controllers/users_new.js
and /controllers/users_edit.js
from ember-app-kit.
dashes instead of underscores, as they "appeal" in JS and the filesystem.
full verbose form:
data-store@namespace:folder/foo-bar
template@glazier:user/edit
@namespace would be inferred from to current namespace.
template:user/edit
from ember-app-kit.
I've reimplemented the loader to support a slightly different file structure. We store each section of our app (generally corresponds to resources or routes) under app/modules. Then each section has a single file or folder for routes, controllers, views and templates. I think this structure is more common the Angular community, but I've also seen it in Charcoal, although I don't think it's enforced in code the way this is.
Is anyone else using a similar style? I've posted our resolver in a gist if anyone else is interested. If we could incorporate the current EAK default as well, would this be PR-worthy?
'template:post' //=> Ember.TEMPLATES['post']
'template:posts/byline' //=> Ember.TEMPLATES['posts/byline']
'template:posts.byline' //=> Ember.TEMPLATES['posts/byline']
'template:blogPost' //=> Ember.TEMPLATES['blogPost'] || Ember.TEMPLATES['blog-post']
'controller:post' //=> post/controllers/main || post/controller
'controller:blog/post' //=> blog/controllers/post
'route:post' //=> post/routes/main || post/route
'route:posts.index' //=> posts/routes/index
'route:blog/post' //=> blog/routes/post
'route:basic' //=> Ember.Route
'view:post' //=> post/views/main
'view:posts.index' //=> posts/views/index
'view:blog/post' //=> blog/views/post
'view:basic' //=> Ember.View
'foo:post' //=> post/foos/main || post/foo
'route:index' //=> index/route (app/modules/index/route)
from ember-app-kit.
Related Issues (20)
- Does EAK Support Inheritance With Controllers? HOT 3
- Suggestion: Defer loading of JavaScript HOT 1
- Recommended Folder Structure Using EAK HOT 4
- Migrating to Ember-CLI HOT 17
- Deploying to a non-root directory HOT 3
- Trouble with NPM scripts HOT 1
- 'grunt test:server' not work HOT 1
- Extending Store In EAK HOT 4
- EAK: Where do we place {{partials}} ? HOT 2
- ./config/environment.js example HOT 7
- `Cannot find module..." HOT 3
- Migrating to Ember-CLI Screencast HOT 2
- Importing shared ES6 modules futuristically HOT 2
- Added bootstrap-sass-official, Now Can't Push to Heroku HOT 2
- Stub API not working with server:dist task
- Transition into the loading substate
- Allow Ember Init and Generate for Coffeescript HOT 1
- Production build failed (grunt:dist) on fresh clone of EAK HOT 1
- Cannot deploy the 'ember app kit' app to heroku
- Update Ember CLI Migration Guide HOT 12
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 ember-app-kit.