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
fa400d9dcb
Merge branch 'iife'
2013-02-16 15:58:29 -06:00
kpdecker
30623ce903
Add explicit SafeString property test
2013-02-16 13:55:55 -06:00
kpdecker
16bfebbf49
Use dist output in spec helper
2013-02-16 13:07:56 -06:00
kpdecker
e2481cd66e
Use PARSER_CONTEXT for tokenizer tests
2013-02-16 10:47:42 -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
kpdecker
b3f954b0af
Merge branch 'fix_specs' of github.com:leshill/handlebars.js into leshill-fix_specs
2013-01-13 12:47:18 -06:00
kpdecker
f671c2e3d7
Pin rubyracer version to 0.10
...
This is a temporary fix. See https://github.com/wycats/handlebars.js/pull/405#issuecomment-12013108
2013-01-13 12:43:42 -06:00
Les Hill
f4cad086bb
Fix spec for 8df8488
2013-01-06 09:32:18 -08:00
Yehuda Katz
28f377d169
Upgrade to latest TRR
2012-12-23 21:27:44 -08:00
Yehuda Katz
02d35262f9
Fill in missing specs
2012-12-23 21:27:44 -08:00
Yehuda Katz
17ee7ffaca
Merge pull request #388 from dmarcotte/empty-inverse-blocks
...
Allow empty blocks around simple inverses
2012-12-23 20:31:46 -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
Daniel Marcotte
4cfda479fa
Allow empty blocks around simple inverses
...
Previously, the parser required at least one character of whitespace
to properly interpret empty blocks around simple inverses, which was
non-intuitive and inconsistent with empty block parsing.
Update the parser to allow empty blocks around simple inverses.
2012-12-11 09:47:49 -08:00
Peter Wagenet
39832c0633
Fix handling of Errors in Chrome
2012-11-02 10:39:49 -07:00
Yehuda Katz
a927a9b0ad
Add block comment syntax:
...
{{!-- can contain
{{handlebars expressions}} --}}
2012-10-15 13:51:53 -04:00
Mike Petrovich
d89e4b3d33
Added unit tests for #each with objects
2012-10-15 10:27:58 -04:00
Yehuda Katz
850304f43b
Merge pull request #295 from leshill/escaped_quotes
...
Escaped quotes in hash arguments
2012-10-12 23:38:18 -07:00
Les Hill
a1c9acb8b1
Escaped single quotes in hash arguments
2012-09-22 08:09:33 -07: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
tomhuda
5a6e4f1ddd
Fix repeated delimiter escaping
2012-09-12 20:44:48 -07: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