Double Backslashes being converted into single slashes #131

Closed
Apathetic012 opened this Issue Feb 21, 2013 · 1 comment

Comments

Projects
None yet
2 participants
var template = require('hogan.js').compile('{{a}}')
  console.log(template.render({a:'C:\\werwr\\werwer'}))

becomes

C:\werwr\werwer

When I chain them all together I don't get that sort of behavior though:

require('hogan.js').compile('{{a}}').render({a:'C:\\werwr\\werwer'})

becomes

'C:\\werwr\\werwer'
Collaborator

sayrer commented Aug 19, 2013

This works fine for me. Check into the JS rules for backslash escaping.

sayrer closed this Aug 19, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment