paularmstrong/swig — Issue #45: Using the set tag with a number fails
Author: imbcmdth
Created: 2012-02-07 10:43:43+00:00
State: open

Doing:

{% set test = false %}

...works but:

{% set test = 99 %}

Fails with:

SyntaxError: Unexpected number
at Object.Function (unknown source)
at createTemplate (J:\test\site\node_modules\swig\index.js:71:14)
at getTemplate (J:\test\site\node_modules\swig\index.js:108:26)
at Object.compile (J:\test\site\node_modules\swig\index.js:152:16)
at Function.compile (J:\test\site\node_modules\express\lib\view.js:68:33)
at ServerResponse._render (J:\test\site\node_modules\express\lib\view.js:417:18)
at ServerResponse.render (J:\test\site\node_modules\express\lib\view.js:318:17)