Matthew Flaschen
c9d723e0fb
Add missing reserved words so compiler knows to use array syntax:
...
* await
* null
* true
* false
IE 8 was failing to compile Handlebars-generated source code
because it had helpers.null.
I came up with this list by diffing
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Keywords
against the ones Handlebars already had.
I added two corresponding tests for nameLookup.
2015-01-17 19:04:38 -05:00
kpdecker
3ee0682247
Generate source maps
...
Allow the precompiler to generate source maps when the srcFile parameter is passed.
This refactors large chunks of the code generation pipeline, allowing metadata to be associated with code chunks as well as breaking out much of the code generation logic into a separate helper.
2014-11-08 17:50:01 -06:00
kpdecker
7a7ad74ff1
Optimize buffer generate first and all edge cases
2014-02-09 14:24:18 -06:00
kpdecker
2812fe2775
Convert template spec to object literal
...
This allows for metadata to be associated with the template and a simplification of the template init logic.
2014-02-06 23:05:45 -08:00
kpdecker
bbc7c7d080
Expose compilerInfo and checkRevision as APIs
...
Fixes #656
2013-12-23 21:00:59 -06:00
kpdecker
1a751b2f6e
Add JavascriptCompiler public API tests
2013-12-23 20:59:16 -06:00