Coder Social home page Coder Social logo

Comments (3)

ghempton avatar ghempton commented on August 16, 2024

👍 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.

stefanpenner avatar stefanpenner commented on August 16, 2024

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.

joefiorini avatar joefiorini commented on August 16, 2024

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)

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.