-
Notifications
You must be signed in to change notification settings - Fork 29
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
globalJsonGlobbedTemplate - templateData path doesn't actually matter #60
Comments
could you post a demo of the unexpected behavior? I am not replicating. |
@patrickkettner I'm having the same problem. In my Gruntfile I've set
It's not looking in the directory I've defined but in the directory where it's reading the templates from. |
This works for me.
|
Yeah that will work fine, the point i'm making is that if you set a path for templateData it will get ignored and continue to look where the handlebar/html files are, so either change the readme to reflect that or we can look at changing the implementation. |
the implementation should definitely be changed - the readme reflects what should be happening. |
I've added a failing test case that displays the issue, i'll try and take a whack at fixing it later if i get a chance. Feel free to take a look for the time being - https://github.com/mikemellor11/grunt-compile-handlebars.git |
From what i've found setting the path in
templateData
when using theglobalJsonGlobbedTemplate
technique doesn't actually change anything, it looks in the same place you've set it to find the handlebars/html files. This behaviour is fine, but it might be helpful to set the templateData to '*.json' in the readme as this is all thats needed for it to work.The text was updated successfully, but these errors were encountered: