Commit Graph
33 Commits
Author SHA1 Message Date
Jeremy Bush c45550e9e5 Fixing #3, Transversable objects should be iterated over. 2010-07-05 23:58:35 -04:00
Jeremy Bush 6084a37a3c Adding examples for object sections 2010-07-05 23:58:15 -04:00
Justin Hileman 98ec8ea11a Fixed protected property in PragmaEscaped example (should be public) 2010-06-22 07:11:33 -04:00
Justin Hileman a46d0009ee Added test case for deep parent/child contexts, mixed objects and arrays. 2010-06-08 22:36:49 -04:00
Justin Hileman df1b3c8e7d Pragmas in parent templates no longer apply to partials (as of a few commits ago). Added test case, removed known issue from readme. 2010-05-22 20:50:05 -04:00
Justin Hileman e2374d645b [punting] fixing whitespace in recursive partials template since mustache kinda sucks at whitespace :) 2010-05-22 20:40:47 -04:00
Justin Hileman 605dea1f79 Fix for infinite recursion in recursive partials example. 2010-05-22 19:59:15 -04:00
Justin Hileman dff5300932 Added [currently failing] test case for recursive partials. 2010-05-22 19:25:27 -04:00
Justin Hileman eeb5b245d1 Possible fix for #1 - ability to use partials with an arbitrary (non-Mustache) view class. 2010-05-22 18:34:24 -04:00
Justin Hileman 9f31a821e1 Merge branch 'feature/test-coverage' into dev 2010-05-18 10:28:14 -04:00
Justin Hileman 9e803ed033 Fix for stripping leading/trailing whitespace from partial names,
per http://github.com/janl/mustache.js/issues/issue/34/#comment_244396
2010-05-18 10:28:01 -04:00
Justin Hileman 2c3984a604 Fix for #1 - incorrect context for partials.
Partials now receive a flattened version of the parent context, including a cloned Mustache instance (if the root context is a Mustache instance). There may be issues with cloning, for example: if a pragma is enabled in the parent template, partials might also inherit the pragma.
Added (basic) test case for partials.
2010-05-16 15:04:22 -04:00
Justin Hileman c53963f4af Merge branch 'dev' into feature/test-coverage
Conflicts:
	test/MustachePragmaTest.php
2010-04-30 11:18:50 -04:00
Justin Hileman a834ef7845 Added unescaped pragma. 2010-04-30 00:09:27 -04:00
Justin Hileman 22864870ce Merge branch 'dev' into feature/test-coverage
Conflicts:
	Mustache.php
2010-04-29 20:57:34 -04:00
Justin Hileman 0ff5a33505 Updated dot-notation example to include {{%PRAGMA}} tag. 2010-04-29 20:46:35 -04:00
Justin Hileman 69a514916c Updated section short-circuit logic to actually run when only inverted sections exist. 2010-04-26 23:19:20 -04:00
Justin Hileman 9b8454f2ba Simplified tag RegEx. Fixed bug preventing section modifiers inside comments. 2010-04-26 22:38:33 -04:00
Justin Hileman ad83344900 Merge branch 'dev' into feature/pragma-dot-notation
Conflicts:
	README.markdown
2010-04-26 22:03:03 -04:00
Justin Hileman 5a819a33da Fix for missing child context in sections. 2010-04-26 21:49:54 -04:00
Justin Hileman a66e494e6e Merge branch 'release/0.1'
Conflicts:
	examples/complex/complex.php
2010-04-26 21:15:59 -04:00
Justin Hileman 81fa51c1af Simplified dot notation example, fixed sample output. 2010-04-26 20:33:54 -04:00
Justin Hileman f0d171aed6 Merge branch 'dev' into feature/pragma-dot-notation 2010-04-26 20:27:07 -04:00
Justin Hileman 57a6aafff1 Fixed complex example to use inverted sections rather than fancy ruby-ish context swizzling (which never worked in PHP anyway). 2010-04-26 19:01:57 -04:00
Justin Hileman fc170fca11 Add inverted section. 2010-04-26 18:58:58 -04:00
Justin Hileman 818a07a64a Added more complex dot notation example (from defunkt/mustache). 2010-04-23 14:14:06 -04:00
Justin Hileman d2ff6fa1ac Example for dot notation pragma. 2010-04-23 13:46:39 -04:00
Justin Hileman 05767e3b74 Trailing whitespace cleanup. 2010-04-06 01:11:27 -04:00
Justin Hileman 1ede993bb3 Added double section, escaped output, utf8 escaped and utf8 unescaped examples. 2010-04-06 00:54:45 -04:00
Justin Hileman 4059c4da00 Two new examples: 'delimiters' and 'sections'. Would be more exciting if 50% of new examples didn't fail :) 2010-04-06 00:24:33 -04:00
Justin Hileman 26aad7b490 Complex example was a direct port of ruby/javascript complex example, resulting in some methods named with PHP reserved keywords. Fixing that oversight. 2010-04-05 23:55:29 -04:00
Justin Hileman a93feb2f78 Fixed trailing newline in simple example output. 2010-04-05 23:54:10 -04:00
Justin Hileman 5e99b15252 Adding examples. 2010-03-30 14:57:18 -04:00