ericclemmons / grunt-angular-templates

Grunt build task to concatenate & pre-load your AngularJS templates
MIT License
710 stars 107 forks source link

Separate template for each language #150

Open shaltie opened 8 years ago

shaltie commented 8 years ago

I have different folders for each language templates. I need to make cached template as well for each language. e.g., src: ['views/LANG/app.html', '/views/LANG/nav.html' ], dest: 'views/cached/LANG/tpl.js'

should be
'views/cached/en/tpl.js' 'views/cached/fr/tpl.js' 'views/cached/de/tpl.js'

Is this possible?

gsaini commented 8 years ago

+1. I am also looking the same as I need to create module wise templates.

gsaini commented 8 years ago

Use files object to map source & destination files as below..

files: { 'tpls1.js': 'module1/.html', 'tpls2.js': 'module2/.html', }

Hope it will help...

underscorebrody commented 8 years ago

@shaltie Have you tried @gsaini's solution? If that solves your problem I'd like to close out this issue.