Commit Graph
26 Commits
Author SHA1 Message Date
Justin Hileman 7d4c68f8ad Merge branch 'dev' into feature/implicit-iterator
Conflicts:
	Mustache.php
2010-05-23 00:15:16 -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 20ace3e74c Implemented implicit iterator pragma.
Fixed getPragmaOptions to return empty array if no options are set.
Fixed getVariable to return exact variable name matches before dot notation matches (i.e. the default iterator -- '.' -- will match the iterator and not try to do some crazy dot notation parsing.
2010-04-29 22:49:50 -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