-
Notifications
You must be signed in to change notification settings - Fork 107
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
Bad escapement #3
Comments
Thanks for the tip! I'll check it out once I'm back in town. Could you post the full Is the issue on the compiled template file, or an issue within the library? On Saturday, January 12, 2013 at 1:08 PM, RogueVoo wrote:
|
Yes, this issue on the library, because she generate invalid templates [L100:C27] Bad escapement.
$templateCache.put("src\html\item.html",
[L100:C32] Bad escapement.
$templateCache.put("src\html\item.html",
[L123:C27] Bad escapement.
$templateCache.put("src\html\list.html",
[L123:C32] Bad escapement.
$templateCache.put("src\html\list.html",
... Grunt task config: ngtemplates:{
production:{
options:{
base:'c:/web/project'
},
src: ['src/html/*.html'],
dest: 'tmp/templates.js'
}
} The problem in the function path.relative and the platform where it is called, in my case it windows7 and nodejs 0.8.14 path.relative('C:\\orandea\\test\\aaa', 'C:\\orandea\\impl\\bbb')
// returns
'..\\..\\impl\\bbb' Function returns string with double backslashes, and when you put "id" in template they escape and turns to single backslash. I think AngularJS does not work with backslashes in urls and they must be replaced to slashes "/". id: process.platform === 'win32' ? id.replace( /\\/g, '/' ) : id |
Ah, thank you! I missed the Windows reference. I'll create a fix for this right away! Thanks for the issue :) Eric Clemmons On Saturday, January 12, 2013 at 9:25 PM, RogueVoo wrote:
|
Would you be opposed to simply performing the |
JSHint throw error "Bad escapement" when i'm run lint task with Grunt
https://github.com/ericclemmons/grunt-angular-templates/blob/master/tasks/lib/compiler.js#L17
Variable id contain "backslashes ()" instead "slashes (/)"
I think it's result path.relative in windows environement
The text was updated successfully, but these errors were encountered: