Commit Graph

33 Commits

Author SHA1 Message Date
Dmitriy Simushev
e8ce548b86 Add ability to merge Helpers collections 2014-12-12 12:25:21 +00:00
fzerorubigd
a68318f4c5
Support whitespace deletion
Need more test :)
fixes #61
2014-07-04 03:36:14 +04:30
behrooz shabani (everplays)
81f3efbb84 helpers with style of array(Object, methodName)
Previously we had them working. So for the sake's of backward
compatibility, they should be supported.
2014-03-27 12:03:35 +04:30
Jeff Turcotte
c166af1ed7 Added helper interface and converted all built in helpers 2014-03-26 21:59:57 -04:00
majortom731
30f7afeb84 More code style / indentation fixes 2014-03-17 16:46:12 +01:00
majortom731
5257701669 Fixed indentation / code style 2014-03-17 16:41:54 +01:00
majortom731
5c3ea257b7 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 17:00:09 +01:00
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
f82c3a8098 Reset stop token after iterations in each helper 2014-01-28 15:11:17 +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
Craig Bass
689c9e51de Allow each helper to accept PHP Generators 2014-01-16 13:29:10 +00:00
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
000bdd6e74
change default helpers to anonymus function again 2013-11-21 23:41:20 +03:30
fzerorubigd
25190010e1
fix a bug with helpers and add a test for that 2013-11-08 19:00:54 +03:30
fzerorubigd
d1856a4ed3
Cleanup. 2013-11-08 15:00:49 +03:30
behrooz shabani (everplays)
e513648544 use PHP CodeSniffer's coding standards 2013-11-05 14:12:44 +03:30
behrooz shabani (everplays)
8ed1ebd051 Merge branch 'master' of github.com:virtuecenter/handlebars.php
Conflicts:
	src/Handlebars/Template.php
2013-11-05 10:58:02 +03:30
Bouke Versteegh
eda8d34cbb Added support for @index in #each-helper when used on lists. 2013-11-01 18:27:13 +01:00
Bouke Versteegh
3d5d44d6d7 Added support for @index in sections: {{#listsection}}, and @key in objects: {{#each object}} 2013-11-01 13:57:00 +01:00
Dan Fellars
c179a4ce9b Converted License from GPLv3 to MIT 2013-10-18 10:07:27 -06:00
webuser
9319f3d89c missed a few namespace issues 2013-09-21 15:41:17 -04:00
webuser
82a9faf3eb add namespace, remove underscores from class names 2013-09-21 15:10:30 -04:00
Diosney
6ea602c9c9 Helpers: Added PHP 5.2 support. 2013-08-21 10:23:15 -04:00
fzerorubigd
9fb753f75c forgot about this file 2012-11-17 16:31:41 +03:30
fzerorubigd
b9b63836c7 change the way to fix #2 2012-11-17 16:30:25 +03:30
fzerorubigd
ec6761fde4 Add {{else}} support to if 2012-11-17 15:52:51 +03:30
behrooz shabani (everplays)
600215d648 added support for "else" in in if helper. fixes #2
XXX: could it be fixed in better way?
2012-11-17 12:46:24 +03:30
fzerorubigd
f3fc076dfc add bindAttr helper to default helpers 2012-11-05 08:51:35 +03:30
fzerorubigd
2af461c7f6 initial commit 2012-10-25 19:00:10 +03:30