You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
People might want to use slightly different project schemes. This can range from file extensions and whether to include a particular file (e.g. how .em/config.json works now) to also actually changing the structure completely. It might be a link in the config.json to the generator package. Also need a more modular way for handling different file types. For example, currently if I use the harmony package and have app.next.js files, em thinks it should use coffeescript.
The text was updated successfully, but these errors were encountered:
I agree, we definitely need a more modular approach here. The conditional checks in the template's view files are the main reason next.js files are being generated with coffeescript.
It was meant to be more of quick fix than permanent solution and definitely needs a more modular design.
Ideally, I'm thinking it would be nice if the supported extensions were directly dependent upon the templates that exist in templates directory. So going back to next.js, for the view generator, all we would have to do to support next.js is create a directory and a template file for that extension. For example, iron/lib/templates/views/next.js/view.next.js.ejs or something along those lines. If we went this route, we could just make the writeTemplate() function smart enough to map the provided extension to the correct directory and template.
People might want to use slightly different project schemes. This can range from file extensions and whether to include a particular file (e.g. how .em/config.json works now) to also actually changing the structure completely. It might be a link in the config.json to the generator package. Also need a more modular way for handling different file types. For example, currently if I use the harmony package and have app.next.js files, em thinks it should use coffeescript.
The text was updated successfully, but these errors were encountered: