Compiles into JavaScript functions for use in client-side (sub. grunt-ec...#3
Compiles into JavaScript functions for use in client-side (sub. grunt-ec...#3jbolila wants to merge 1 commit intodocpad:masterfrom
Conversation
There was a problem hiding this comment.
One might expect a .js.eco fiile to be a JavaScript file that has some eco formatting. Perhaps something like this:
var user = "<%= name %>";
document.write("I'M SHOUTING AT YOU, <%= @name.toUpperCase() %>!");It might make sense to provide an additional extension for this. Maybe something like a .jst.eco convention? What are your thoughts?
|
Another solution would be to use https://github.com/docpad/docpad-plugin-multiplelayouts , and have a layout that would output the JSON template data for it. |
|
I have become too preoccupied by other things to review, merge, and release this PR. However, you should have received an invite a while ago to join the DocPad Extras Team, which will give you write access to this repository, so you can merge in the PR. For an orientation, or if you need any assistance following the semi-automatic release process from |
some changes to allow creation of Javascript files of templates. Is very similiar with grunt-eco, and also with other asset packaging libraries like Jammit and Sprockets (in Ruby).
Backbone.js explained in CoffeeScript use this kind of JST objects to render Backbone Views, based on Eco templates.
thanks