chunksnbits / grunt-template-render

Grunt template rendering with partial and translation support
MIT License
1 stars 0 forks source link

Template-paths not resolved correctly, if they do not lie in root. #2

Closed Codeschmied closed 7 years ago

Codeschmied commented 7 years ago

Example: The project root is C:\code\production\prototype The template file is C:\code\production\prototype\app\mytemplate.html If you now try to reference the template file like this: <%= render('//app//mytemplate.html') %> you get this error: Warning: Source file C:\code\production\prototypeundefined not found.

chunksnbits commented 7 years ago

Hi, looks odd.

Have you tried setting the cwd option (https://github.com/chunksnbits/grunt-template-render#cwd)?

Codeschmied commented 7 years ago

Hi! Thanks for the quick answer. This solves this problem. I now have another problem now. I will post it in a new issue.