Commit Graph

190 Commits

Author SHA1 Message Date
David Deutsch
3229ad7c45 Support for context passed into a partial as an argument 2013-07-26 01:27:07 +02:00
fzerorubigd
ed925cf1b8
add registerPartial to fix #10 2013-06-01 17:55:42 +04:30
fzerorubigd
65eb09d101 Adding Handlebars_String to fix #12
If a helper return a Handlebars_String, then the result is compiled again.
2013-06-01 17:40:45 +04:30
Behrooz Shabani
63cd738e64 Merge pull request #11 from daviddeutsch/patch-1
Support recursive object traversal (this.property)
2013-04-03 02:24:56 -07:00
David Deutsch
0451fa2483 Support recursive object traversal
Nested this.property traversal wasn't possible. With this fix, it is.
2013-04-02 13:12:27 +03:00
fzerorubigd
e6b4182a75
another fix :I 2013-03-18 23:55:37 +03:30
fzerorubigd
ecbfa8f383
fix #9
Damn, I should write tests!
2013-03-18 15:12:40 +03:30
fzerorubigd
89f0c00790
Add array of path support to file system loader.
fix #9
2013-03-16 10:53:16 +03:30
Fzerorubigd
65fe447c36 Merge pull request #8 from meraki/upstream
Add APC cache
2013-02-27 12:22:54 -08:00
fzerorubigd
c550491841
Add cache->set method to engine
Signed-off-by: fzerorubigd <fzerorubigd@gmail.com>
2013-02-27 23:49:33 +03:30
Joey Baker
09c0442132 Setting a prefix on partial now works with sub directories 2013-02-26 17:44:13 -08:00
Joey Baker
1c90b6a169 Add APC cache 2013-02-26 13:22:42 -08:00
Joey Baker
eba64322c5 FileSystemLoader accepts option for a file prefix
This makes it easy to use the convention of prefixing partials with underscores.
2013-02-26 11:22:54 -08:00
fzerorubigd
3d8685f179
Add this (for current variable in context) fix #5
Signed-off-by: fzerorubigd <fzerorubigd@gmail.com>
2013-01-19 15:26:51 +03:30
fzerorubigd
c735de8e5b Merge branch 'master' of github.com:XaminProject/handlebars.php
Conflicts:
	src/Handlebars/Template.php
2012-11-29 12:24:45 +03:30
fzerorubigd
8d266bfcd8 return {{^var}} handler 2012-11-29 12:20:49 +03:30
fzerorubigd
ecc1b11f2a fix #4 , NEED TO ADD SOME TESTS ASAP 2012-11-29 10:53:03 +03:30
fzerorubigd
30795180a9 move stop token into stack, fix #3 2012-11-28 12:55:07 +03:30
fzerorubigd
d43d777ce6 change stack position just if there is stop token available 2012-11-19 17:56:10 +03:30
fzerorubigd
4244730d24 fix a bug with stop token (when there is no stop token at all) 2012-11-19 17:35:38 +03:30
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
d99f9a7830 fix strict mode in context::get 2012-11-10 15:46:26 +03:30
fzerorubigd
4c2573ffc2 Merge branch 'master' of github.com:XaminProject/handlebars.php 2012-11-10 14:45:16 +03:30
fzerorubigd
e3c2936694 Add support for mustache like each/with and if 2012-11-10 14:44:23 +03:30
behrooz shabani (everplays)
e8ac333e43 Merge branch 'master' of git://github.com/XaminProject/handlebars.php 2012-11-09 21:43:07 +03:30
behrooz shabani (everplays)
9d5a661083 fixed a typo in call of getPartialsLoader in loadPartial 2012-11-09 21:42:21 +03:30
fzerorubigd
f3fc076dfc add bindAttr helper to default helpers 2012-11-05 08:51:35 +03:30
behrooz shabani (everplays)
a5ef5f213b Merge branch 'master' of git://github.com/XaminProject/handlebars.php 2012-10-29 15:43:06 +03:30
behrooz shabani (everplays)
6319950bca we shouldn't compare context with string as __toString will be called 2012-10-29 15:42:42 +03:30
fzerorubigd
973dfff34a Remove T_INVERTED form Template.php 2012-10-29 12:27:19 +03:30
fzerorubigd
bdc3643544 Fix a typo to be compatible with mustache api 2012-10-28 23:27:28 +03:30
fzerorubigd
8db6b089ca remove {{^ handler 2012-10-28 19:31:19 +03:30
fzerorubigd
510ba18a37 Add shorthand helpers method to engine 2012-10-26 01:44:32 +03:30
fzerorubigd
e7c0423dd7 correct url in composer.json 2012-10-26 01:11:33 +03:30
fzerorubigd
dd3902dc1b Add autoloader 2012-10-26 01:00:32 +03:30
fzerorubigd
97989f1cdd Add travis yaml file 2012-10-26 00:51:38 +03:30
fzerorubigd
2af461c7f6 initial commit 2012-10-25 19:00:10 +03:30