Kevin Decker
075fdb8ac4
Merge pull request #454 from leshill/fix_string_mode_contexts
...
Add contexts for string mode hash values
2013-04-07 17:21:40 -07:00
kpdecker
4429ffa9f3
Allow multiple partial and helper registration
...
Fixes #369
2013-04-07 18:04:51 -05:00
kpdecker
f6ff5c648b
Restore knownHelpersOnly throw
...
Fixes #302
2013-04-06 23:23:40 -05:00
kpdecker
4d66d0c0a6
Escape unicode newlines in string literals
...
Fixes #375
2013-04-06 16:42:24 -05:00
kpdecker
e33d9b4dcf
Add test case for GH-458
2013-04-06 15:28:27 -05:00
kpdecker
f4d0092bb8
escapeExpression tests
2013-04-06 14:42:33 -05:00
kpdecker
fe74d65f2b
isEmpty test
2013-04-06 14:26:08 -05:00
kpdecker
9e4b59e815
Add support for \\{ escapes
...
Fixes #456
2013-03-31 16:27:34 -05:00
Les Hill
53de75927c
Add contexts for string mode hash values
...
Allows for evaluating hash parameters such as ../city in string mode.
2013-03-19 21:41:36 -07:00
kpdecker
d6f146f8a5
Fix #428 nested if else rendering
...
The program equality checker was not taking children into account
when determining equality, causing breakages under similar cases.
2013-02-16 16:18:17 -06:00
Kevin Decker
8b2c1e5d23
Merge pull request #442 from tricknotes/fix-method-name-in-error-message
...
Fix method name in error message
2013-02-16 14:01:31 -08:00
kpdecker
30623ce903
Add explicit SafeString property test
2013-02-16 13:55:55 -06:00
Ryunosuke SATO
261a2deb51
Fix method name in error message
...
- compile -> precompile
2013-02-16 20:14:38 +09:00
kpdecker
75a4f0d931
Negative number literal support
...
Fixes #422
2013-02-15 20:22:11 -06:00
machty
a48e32bbf6
Handlebars.parse/precompile/compile can now be passed an already-compiled Handlebars AST.
2013-02-07 02:06:17 -05:00
Les Hill
6ab92eee6d
Only allow 'this' or '..' to lead a path
...
Paths like 'outer/../key' raise an exception when compiling.
2013-01-21 11:21:43 -08:00
kpdecker
228c75669f
Expand literal syntax tests
2013-01-19 13:19:17 -06:00
kpdecker
d1fdb82291
Make equals without messages more resilient
...
When called without a message parameter the tests would fail under some
environments. I'm not clear on what is causing the failure, perhaps
ruby version, but this patch cleans up the issues there.
2013-01-19 13:19:03 -06:00
tomhuda
ce82bef6f1
Boolean("false") === true
2013-01-18 16:42:27 -08:00
tomhuda
cd9895061b
Must pop the stack extra for hashes
2013-01-18 15:37:09 -08:00
Yehuda Katz
ccd6a22ea5
Add support for getting types in string mode
...
This makes it possible to determine whether an
argument was passed as a string or as a path
when implementing helpers in string mode.
2013-01-16 22:43:25 -08:00
kpdecker
5e5f0dce9c
Expand helperMissing test coverage
...
Fixes #216
2013-01-14 01:01:02 -06:00
kpdecker
24fc3a2288
Prevent write on all depth variables
2013-01-13 23:43:29 -06:00
kpdecker
8961298859
Prevent context overwrite by replaceStack
...
Fixes #408 .
2013-01-13 22:35:03 -06:00
kpdecker
7a3641df5a
Cleanup tests
...
jshint and fixup arg passing
2013-01-13 13:22:44 -06:00
Les Hill
f4cad086bb
Fix spec for 8df8488
2013-01-06 09:32:18 -08:00
Yehuda Katz
02d35262f9
Fill in missing specs
2012-12-23 21:27:44 -08:00
Yehuda Katz
bf4c813db0
Merge pull request #389 from leshill/partial_names
...
Partials can be paths
2012-12-23 20:29:36 -08:00
Yehuda Katz
070e12f76f
Merge pull request #390 from eastridge/master
...
Make {data: true} a default compile option
2012-12-23 20:21:36 -08:00
Yehuda Katz
9385666e08
Get a better error for compile(falsy)
2012-12-23 20:15:18 -08:00
Les Hill
b58c2dd0ad
Test for #84
2012-12-13 11:15:38 -08:00
Les Hill
4bb794d814
Partials can be paths
...
Allows partials with slashes, a common partial syntax. For example:
{{> shared/dude}}
2012-12-13 11:15:38 -08:00
Ryan Eastridge
7ce13a3c2c
Add failing unit test for private variables
2012-12-12 18:10:18 -08:00
Peter Wagenet
39832c0633
Fix handling of Errors in Chrome
2012-11-02 10:39:49 -07:00
Mike Petrovich
d89e4b3d33
Added unit tests for #each with objects
2012-10-15 10:27:58 -04:00
Tyson Tate
42120d1177
Bind functions to the context properly.
...
The regression was introduced in 1.0.rc.1.
This fixes issue #317 .
2012-09-19 16:03:46 -07:00
Yehuda Katz
26b1438f20
Merge pull request #198 from codekitchen/master
...
properly handle ampersands when HTML escaping
2012-09-14 20:48:40 -07:00
Yehuda Katz
b83e5e0ea6
Merge pull request #297 from karlwestin/fix-reverse-array
...
Fixed an issue where {{#array}} {{/array}} wouldn't pass in an @index data variable
2012-09-14 20:26:11 -07:00
kpdecker
aba2269ddb
Add nested hyphen test cases
2012-09-13 17:51:12 -05:00
Karl Westin
acc04c2826
Fixed an issue where {{#array}} {{/array}} wouldn't pass in an
...
@index data variable.
I just thought it would be nice to add in this feature. I'm using
the two of these a little interchangable, so if other people are doing
that as well, it might help usability.
2012-08-27 12:55:55 -07:00
kpdecker
dc0426d836
Merge with upstream/master
2012-08-21 12:49:40 -05:00
Les Hill
9ce3032678
Recognize bar='baz' hash argument
2012-08-14 23:12:22 -07:00
kpdecker
d8825b1961
this parameter tests
2012-07-30 21:12:03 -05:00
kpdecker
eb509a4b8b
Execute mocha test from npm test
2012-07-23 13:47:52 -05:00
kpdecker
09ac8ac24b
Make jshint happy(er)
2012-07-23 13:45:53 -05:00
kpdecker
adb8486e5f
Use suite rather than module for module decl
2012-07-23 13:44:45 -05:00
Yehuda Katz
46c04fa71e
Make deep @data trigger the data option
2012-07-05 23:05:55 -07:00
Yehuda Katz
72e05d623c
Add support for @data variables
2012-07-05 22:43:05 -07:00
tomhuda
175c6fae0f
More cleanup
...
* Make block and inverse use the main helper path
* Eliminate separate inverse AST node
2012-05-28 17:00:41 -07:00
Yehuda Katz
8786a6c6e2
Start doing earlier work on helpers
2012-05-28 00:15:52 -07:00