kpdecker
0aef72cb8e
Update to latest eslint
2015-09-01 17:56:32 -05:00
kpdecker
410141c31e
Fix escaping of non-javascript identifiers
...
The ‘ character would cause invalid javascript to be generated as it was not properly escaped. Switching to JSON.stringify safely handles all potential unescaped cases.
2015-08-01 15:48:28 -05:00
kpdecker
569f288551
Add tests for string contexts
...
Fixes #1013
2015-05-06 10:48:23 -05:00
kpdecker
e3d3eda2e1
Add full support for es6
...
Converts the tool chain to use babel, eslint, and webpack vs. the previous proprietary solutions.
Additionally begins enforcing additional linting concerns as well as updates the code to reflect these rules.
Fixes #855
Fixes #993
2015-04-16 16:43:01 -05:00
kpdecker
2a02261a5b
Fix IE test freakout
2015-04-14 22:57:15 -05:00
kpdecker
54e743a09a
Allow this references in literal statements
...
Fixes #967
2015-04-14 01:12:39 -05:00
kpdecker
dfd141cd35
Allow undefined and null in helper names
2015-04-13 21:18:53 -05:00
kpdecker
2d149e7797
Add undefined and null literal support
...
This adds the UndefinedLiteral and NullLiteral to AST.
Fixes #990
2015-04-07 23:37:38 -05:00
kpdecker
39121cf8f5
Handle all potential literal values
...
Adds support for literal helper names in a few missing cases such as block expressions and subexpressions.
2015-02-09 23:54:46 -06:00
Marcio Junior
07f27843dc
Transform literals to path expressions in mustache nodes
2015-02-08 19:31:38 -02:00
Marcio Junior
5cc326d425
Test compilation of literal values in mustaches
2015-02-08 19:31:38 -02:00
kpdecker
b0b522b4f8
Add tests for partial comment whitespace control
2015-01-17 19:19:30 -06:00
kpdecker
f30b3ea329
Allow whitespace control on comments
...
This changes the call signature for the CommentNode constructor, which is a potentially breaking change for AST users.
Fixes #866
2014-11-02 11:55:52 -06:00
kpdecker
4f01f650dc
Render false literal as “false”
...
Fixes #827
2014-08-25 23:35:43 -05:00
kpdecker
33921beaa0
Fix missing parameters for pathed mustaches
...
Fixes #658
2014-01-17 23:09:59 -06:00
kpdecker
0cf5657c43
Use shouldThrow helper for test asserts
2013-12-23 02:19:09 -06:00
kpdecker
ded0a1617f
Protect context-lookups from undefined values
...
Fixes #166
Fixes #587
2013-11-03 10:58:37 -06:00
kpdecker
3702efee5b
Merge branch 'fix-issue-599' of github.com:laurie71/handlebars.js into laurie71-fix-issue-599
2013-10-14 20:44:42 -05:00
Daniel Marcotte
468fa8b6dd
Fix "\\" escaping
...
Previously, "\\{{foo}}" would only result in the desired "\fooValue" if
it was at the beginning of the file or immediately after a close stache.
2013-10-13 09:03:02 -04:00
kpdecker
3b0a3ca1b2
Fix test runners under node
2013-10-09 03:22:05 -07:00
Laurie Harper
03ef3d4258
Test cases for #599
2013-08-28 12:51:54 -04:00
Yehuda Katz
5f664dd78b
Make the Handlebars environment into an object
...
The idea is that the environment wraps up the mutable stuff in
Handlebars (like the helpers) and that you could theoretically create a
new one at any time and pass it in to Handlebars.template.
Every test makes a new environment and uses it in template compilation.
2013-07-26 16:50:37 +00:00
kpdecker
adda0569e0
Refactor qunit unit tests
...
Allows for testing node, browser, and precompiled modes in the node
tests. Also reorganizes the qunit spec file to provide better
organization.
2013-06-01 23:45:43 -05:00