Dmitriy Simushev
10dbe6442e
Merge pull request #127 from thormeier/partial-support-and-error-reporting
...
Fix handling of named arguments in partials
2015-06-30 21:02:40 +03:00
Pascal Thormeier
2e1b67208d
Fix handling of named arguments in partials
...
Also fix tests that weren't even executed
2015-06-29 17:16:59 +02:00
Dmitriy Simushev
2c78af65e0
Add tests for missed Mustache helpers
...
This is the missed test case for #121
2015-06-23 20:57:29 +00:00
Dmitriy Simushev
f3067cb41a
Merge pull request #121 from mmontagna/master
...
Fixes a incompatibility with handlebars.js
2015-06-23 23:46:56 +03:00
Pascal Thormeier
0111689f47
Fix and add tests
...
Also use var_export in exceptions in case array/object/etc get passed
2015-06-17 15:50:10 +02:00
Pascal Thormeier
0a908fb6a1
Improve error reporting in case of exception
...
Make Exception messages more verbose
2015-06-17 14:18:32 +02:00
Martin Zeman
23076d68e5
Added support for class with __toString method as a context variable.
2015-06-07 23:09:14 +02:00
Marco Montagna
91ba4f3191
Removed test that enforce strict search for variables in block exprs, which I believe is incorrect behavior as it breaks from the mustache spec (github.com/mustache/spec/blob/master/specs/sections.yml) see 'Failed context lookups should be considered falsey'
2015-06-03 14:50:46 -07:00
Dmitriy Simushev
824ae885c6
Fix escaping of tags with multiple slashes
2015-06-01 15:15:52 +00:00
Dmitriy Simushev
04f963a21f
Fix slashes mess in Tokenizer
...
See #113 for details
2015-05-19 13:22:15 +00:00
Szijarto Tamas
802d5cf7d3
Test of APC cache
2015-05-12 23:23:04 +02:00
Thomas Seven
b65be0e1c5
Implementation + tests for the @root special variable like in handlebars-v2.0.0.js
...
fixed travis complaints
2015-03-10 13:42:10 +01:00
fzerorubigd
382938b82e
fix phpcs and also add mustache.php copyright notice
2015-01-29 22:28:38 +03:30
fzerorubigd
ccaa5b1d21
Merge branch 'master' of https://github.com/mai7star/handlebars.php
2015-01-29 22:20:16 +03:30
Thomas Seven
8eb24bd9e4
Fixed indentation and comments in the fix for #105
2015-01-29 12:06:21 +01:00
Thomas Seven
2b3d450849
Fixes and Tests for #105
2015-01-29 01:32:41 +01:00
Hiroyuki Toda
317e1ebd6c
add test for InlineLoader
2015-01-26 21:37:51 +09:00
Jeff Turcotte
69d4efe259
Added custom template class option
2014-12-16 18:35:16 -05:00
Dmitriy Simushev
e8ce548b86
Add ability to merge Helpers collections
2014-12-12 12:25:21 +00:00
David Cramer
666e44beb5
Update Template.php
...
Update Template.php
added test case
2014-11-18 07:36:26 +02:00
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