Justin Hileman
1fe5b0dfc2
Whoops. Missed some docs and cleanup :)
2014-06-27 00:18:41 -07:00
Justin Hileman
dd53137ae1
Add missing method docs, minor code cleanup.
2014-06-26 23:05:44 -07:00
Justin Hileman
4c4c6f156b
Merge remote-tracking branch 'jazzdan/dev' into feature/template-inheritance
...
Conflicts:
src/Mustache/Compiler.php
test/Mustache/Test/TokenizerTest.php
2014-06-26 21:51:03 -07:00
Justin Hileman
834e16aacc
Add a comment about __call / is_callable
...
Fixes #199
2014-04-14 21:36:56 -07:00
Dan Miller
d27840f8ef
Throw exception when something other than text or block tags are encountered inside of a parent tag. Other small cleanups
2014-04-09 16:15:05 +00:00
Dan Miller
af8a62c5e2
Separate stacks are necessary for blocks to be resolved independently of variables. Renamed parent_* to block_*.
2014-04-08 21:02:23 +00:00
Dan Miller
31800de88f
removing unnecessary local variable in findFromParent function
2014-04-04 20:42:56 +00:00
Dan Miller
db14a6c863
hogan.js style template inheritance
2014-04-04 18:41:24 +00:00
Justin Hileman
22a47452da
How embarrassing.
...
I keep writing 2013 on my copyright notices.
2014-03-13 22:34:44 -07:00
Justin Hileman
38b6b245b1
Fix ArrayAccess priority:
...
* Methods brump properties and ArrayAccess
* Properties beat ArrayAccess
* ArrayAccess beats nothing at all
* ArrayAccess also beats private properties
Add a test case to verify.
See #178
2013-12-06 19:45:28 -08:00
Justin Hileman
04b016016e
Clean up code style, ArrayAccess test.
...
See #178
2013-12-06 19:45:20 -08:00
Christian Würker
0c85d19509
Allow use of ArrayAccess objects in context.
2013-12-06 19:08:53 -08:00
Justin Hileman
0d161cc7d2
Bump copyright dates.
2013-09-18 12:10:17 -07:00
Justin Hileman
5f29e8305b
Fix Context::find
...
Don't ask closures about their methods or properties
2012-08-01 23:08:50 -07:00
Justin Hileman
2448992cc8
Update to proposed PSR-1 coding standard.
...
* 4 space (no tab) indent
* K&R-style braces
2012-05-01 22:03:39 -07:00
Justin Hileman
bec9ce8448
Add support for PHP 5.2.x
2012-03-17 23:05:52 -07:00
Justin Hileman
6ed1f68e68
isIterable fits better in Template than Context.
2012-03-13 20:45:26 -07:00
Justin Hileman
e09bfb502f
Check if array is iterable without full key diff.
...
~0.5-1% performance gain.
2012-03-13 20:45:26 -07:00
Justin Hileman
9a334cddf0
Inline isCallable and isTruthy into compiled templates
...
~3-5% performance gain.
2012-03-13 20:45:26 -07:00
Justin Hileman
eed4400afb
Add file header docblocks.
2012-03-01 07:17:13 -08:00
Justin Hileman
5c4fcd0c9a
Coding standard cleanup.
2012-03-01 05:26:32 -08:00
Justin Hileman
d2136d91b3
Initial Mustache.php 2.0 commit.
2012-02-29 18:01:57 -08:00