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

Template path in key is not normalzed on windows machine #9

Open
junakowicz opened this issue Apr 15, 2015 · 0 comments
Open

Template path in key is not normalzed on windows machine #9

junakowicz opened this issue Apr 15, 2015 · 0 comments

Comments

@junakowicz
Copy link

Generated template naming (slashes) is inconsistent across mac and win platforms.
on windows:
TEMPLATES['res\templates\debug.tmpl'] = "<div class="panel">

......"
on mac:
TEMPLATES['res/templates/debug.tmpl'] = "<div class="panel">......"

The simplest solution would be in complile.js use unused normalizePath function
ex.
var templateName = path.relative(options.base, filepath) templateName=normalizePath(templateName);

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

1 participant