Angular Jade/HTML Templates
Simple brunch converter for html,jade to AngularJS template Cache
Another Jade/Html converter for brunch?
I never found a way to do what I wan't easily with the others.
What I want :
* An index.jade - index.html (converted-move) to index.html in dist folder
* All the .jade AND .html converted to Angular template cache in a single file
* Do not have surprise with the template file (unexpected char ect.)
Sample configuration :
'''coffee exports.config = ... files: ... templates: joinTo: 'js/templates.js': /^src// plugins: ngJadeHtmlTemplates: pattern: /^src[/\]app/\.(jade|html)$/ patternIndex: /^src[/\]app/\.(jade|html)$/ jadeOptions: pretty :true jadeLocals: {} ... '''
Params
- joinTo
- key : file where the template will be generated
- pattern : This is the RegExp for discover jade or html file in your app
- patternIndex : This is the RegExp for discover index.jade or index.html in your app
- jadeOptions : Jade options (see jade api)
- jadeLocals : Jade Locals (see jade api)