Open umairsiddique opened 12 years ago
So, instead of
compileSync: (sourcePath, source) ->
We will have
compileSync: (sourcePath, source, assetName) ->
This would be of particular use for adding compilers for template engines.
For example, I would be able to do this.
assets.jsCompilers.mustache = namespace: "TEMPLATES" match: /\.js$/ compileSync: (sourcePath, source, assetName) -> compiled = hogan.compile(source, asString: true) "(function() { window.#{@namespace} = window.#{@namespace} || {}; window.#{@namespace}['#{assetName}'] = #{compiled}; })();"
+1
Interesting idea. I've got a few ideas on how to approach this. I'll give it some thought for the upcoming 2.0 release.
So, instead of
We will have
This would be of particular use for adding compilers for template engines.
For example, I would be able to do this.