Dmitriy Simushev
e863d7af80
Make subexpressions play nice with context
2014-09-15 09:19:21 +00:00
Dmitriy Simushev
934566765e
Treat integer helper arguments as literals
2014-09-10 12:31:23 +00:00
Dmitriy Simushev
618ec54490
Fix arguments parsing for "0" string
2014-09-08 13:23:19 +00:00
Dmitriy Simushev
614e8182f0
Add tests for combined arguments parsing
2014-09-02 13:48:09 +00:00
Dmitriy Simushev
17dc20203b
Improve arguments parsing
2014-09-02 09:34:38 +00:00
fzerorubigd
bacde14221
Some changes in tests provided in #80
2014-08-29 11:46:42 +04:30
fzerorubigd
1b491bf602
Merge branch 'subexpr_context_test' of github.com:Mibew/handlebars.php
2014-08-29 11:21:17 +04:30
fzerorubigd
de08528c2c
add extra context layer for if and unless. (Toi match with handlebars.js)
2014-08-29 11:17:31 +04:30
fzerorubigd
d731f8d438
Merge branch 'patch-6' of github.com:ulriklystbaek/handlebars.php
...
Conflicts:
tests/Xamin/HandlebarsTest.php
2014-08-29 11:08:36 +04:30
fzerorubigd
9bebfa9a61
remove an un-finished test
2014-08-29 11:05:06 +04:30
ulriklystbaek
4e81464c30
Update HandlebarsTest.php
...
Test that check if the if and unless helpers comply with handlebars.js
2014-08-28 18:47:51 +02:00
Dmitriy Simushev
0432d99d8a
Add subexpressions with context tests
2014-08-28 13:10:45 +00:00
Behrooz Shabani
c6f3e0fd5e
Merge pull request #75 from Mibew/named_arguments
...
Add named arguments parser
2014-08-20 23:15:37 +04:30
behrooz shabani (everplays)
35ea671fd7
fix 0 being treated as empty string, fixes #76
2014-08-20 10:14:02 +04:30
Dmitriy Simushev
92a3815d85
Add named arguments parser
2014-08-19 11:21:20 +00:00
fzerorubigd
84c6e3006c
fix #71
2014-07-11 21:05:26 +04:30
fzerorubigd
0a35a913c2
add more test and fix a wrong test, also comment some not-used-at-all codes.
...
If need some of thease code back, create a test case for them.
2014-07-04 22:22:18 +04:30
fzerorubigd
a68318f4c5
Support whitespace deletion
...
Need more test :)
fixes #61
2014-07-04 03:36:14 +04:30
Dmitriy Simushev
ff6e3dfe14
Add a test case for issue #69
2014-07-03 16:53:49 +00:00
Dmitriy Simushev
c5d09bd13a
Add a test case for #66
2014-07-02 18:35:00 +00:00
Dmitriy Simushev
a6955b83a9
Fix quotes extra escape
2014-06-24 14:42:22 +00:00
behrooz shabani (everplays)
93b6dd8cb6
fixes extra escaping of scalar arguments
2014-06-23 13:29:50 +04:30
Dmitriy Simushev
d92640890f
Add tests for extra arguments escape problem
2014-06-20 14:03:19 +00:00
behrooz shabani (everplays)
4e0ed3c7ae
more escaping related fixes
2014-03-21 03:29:31 +03:30
behrooz shabani (everplays)
d719bd12ca
don't eat up backslashes. fixes #59
2014-03-21 02:39:59 +03:30
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