Commit Graph

29 Commits

Author SHA1 Message Date
majortom731
5a58d27ad3 Added test for correctness of treatment of brackets inside string arguments ( {{foo '(bar)'}} ) 2014-03-17 23:00:36 +01:00
majortom731
4bc443e834 Added testHelperSubexpressions() 2014-03-12 19:34:15 +01:00
majortom731
d7a9844e93 Changed the internal 'if' helper such that it can test not only paths/variable names, but also numeric constants.
This will be helpful for subexpressions later, when testing numeric subexpressions return values,

eg: {{#if (eq 0 (mod @index 3))}}

Also added a test for this.
2014-03-12 16:59:54 +01:00
behrooz shabani (everplays)
da443c5fd5 added support for escaping tags. fixes #53 2014-03-08 14:50:08 +03:30
fzerorubigd
9c91ea7d64
add another test 2014-02-26 21:13:11 +03:30
fzerorubigd
939c58bbee
Some test improvement and add an ArrayLoader 2014-02-26 20:26:51 +03:30
Dmitriy Simushev
39dd482df5 Add "@first" and "@last" values to "each" helper 2014-02-25 13:24:41 +00:00
Dmitriy Simushev
9d62ffd581 Use both "@index" and "@key" for associative arrays 2014-02-25 12:40:47 +00:00
Dmitriy Simushev
478d28b20f Add tests for auto escape variables content 2014-02-05 14:03:56 +00:00
Dmitriy Simushev
b4c019372b Add segment-literal notation for expressions 2014-02-05 09:07:02 +00:00
Dmitriy Simushev
79373a193a Add \Handlebars\SafeString class 2014-02-03 08:50:01 +00:00
Dmitriy Simushev
390bc70a0c Add test for helpers auto escaping 2014-01-31 15:12:44 +00:00
Behrooz Shabani
8c686a924a Merge pull request #40 from Mibew/each_else
Add "else" block to "each" helper
2014-01-23 08:07:48 -08:00
Dmitriy Simushev
93884fb26b Add "else" block to "each" helper 2014-01-23 11:44:34 +00:00
Dmitriy Simushev
c5d6a482c1 Add "else" block to "unless" helper 2014-01-23 09:59:13 +00:00
Chris Gray
a44777f52f Added Tests and changed internal representation of quoted string literals from strangely quoted string to an instance of \Handlebars\String 2014-01-20 09:57:16 -06:00
Chris Gray
49dcbb2573 Changed Internal representation of quoted string literals to be an instance of \Handlebars\String instead of strangely quoted string. 2014-01-20 09:04:31 -06:00
Chris Gray
054f2c75ee Added tests for .length property on arrays 2014-01-19 21:08:38 -06:00
fzerorubigd
ff503a90a2
add more test 2013-12-06 21:32:36 +03:30
fzerorubigd
fa65e99dfe
fix a bug in context when get invalid variable in strict mode 2013-12-06 20:43:51 +03:30
fzerorubigd
f2a30c6ef1
More test for better coverage 2013-12-06 19:17:27 +03:30
fzerorubigd
82ea9f958d
add support for inline helper without #
fix #28
2013-12-06 18:00:03 +03:30
fzerorubigd
000bdd6e74
change default helpers to anonymus function again 2013-11-21 23:41:20 +03:30
fzerorubigd
f13c6a3cef
add some more tests 2013-11-21 20:43:52 +03:30
fzerorubigd
1398da791d
whoops :) 2013-11-21 20:01:31 +03:30
fzerorubigd
c7ee33a84d
fix tests 2013-11-08 19:40:32 +03:30
fzerorubigd
4da298a4d6
add some other test 2013-11-08 19:25:01 +03:30
fzerorubigd
25190010e1
fix a bug with helpers and add a test for that 2013-11-08 19:00:54 +03:30
fzerorubigd
7e398d41d9
Add some test, need more test :) just for start
address #22
2013-11-07 21:47:57 +03:30