Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate template for each language #150

Open
shaltie opened this issue Jan 20, 2016 · 3 comments
Open

Separate template for each language #150

shaltie opened this issue Jan 20, 2016 · 3 comments

Comments

@shaltie
Copy link

shaltie commented Jan 20, 2016

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
Copy link

gsaini commented Feb 8, 2016

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

@gsaini
Copy link

gsaini commented Feb 9, 2016

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

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

Hope it will help...

@underscorebrody
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants