ad6e15e5b5
Update SectionSpaces class name to work with template autoloading, changing .txt to desired (not actual) output so the test will fail.
Justin Hileman2010-07-22 20:36:29 -04:00
2cfb8aefc1
Rename section object tests to work with upcoming autoload-template feature. Clean up code to match style.
Justin Hileman2010-07-06 10:17:04 -04:00
c45550e9e5
Fixing #3, Transversable objects should be iterated over.
Jeremy Bush2010-07-05 20:20:41 -05:00
6084a37a3c
Adding examples for object sections
Jeremy Bush2010-07-05 17:50:41 -05:00
e026d8e7f5
Fix for examples directory iterator in PHP 5.2. Future-proof things a bit by actually checking for file extension before accessing that index.
Justin Hileman2010-07-05 23:29:28 -04:00
0256d03b5f
Merge branch 'dev' into feature/implicit-iterator
Justin Hileman2010-07-05 15:53:05 -04:00
2edd7330a0
Failing test for higher-order section side effects--issue #4Justin Hileman2010-07-05 15:27:43 -04:00
fd3dc292a3
Merge branch 'feature/fix-partials' into dev
Justin Hileman2010-05-24 10:35:00 -04:00
f0ed2ad499
Added test for template retention in subsequent render invocations.
Justin Hileman2010-05-24 10:29:43 -04:00
1330cf1d48
Updated implicit iterator test to reflect changes in mustache function names.
Justin Hileman2010-05-23 00:48:43 -04:00
7d4c68f8ad
Merge branch 'dev' into feature/implicit-iterator
Justin Hileman2010-05-23 00:15:16 -04:00
2fc242a6ae
Added test case for resetting pragmas when reusing a single Mustache instance to render multiple templates.
Justin Hileman2010-05-22 22:51:26 -04:00
eb1a896569
Fixed root context swap in clone (was checking context[0], should have checked last element in context stack).
Justin Hileman2010-05-22 22:42:54 -04:00
619a48674b
fixed name of clone test, added more assertions.
Justin Hileman2010-05-22 22:41:50 -04:00
df1b3c8e7d
Pragmas in parent templates no longer apply to partials (as of a few commits ago). Added test case, removed known issue from readme.
Justin Hileman2010-05-22 20:50:05 -04:00
e2374d645b
[punting] fixing whitespace in recursive partials template since mustache kinda sucks at whitespace :)
Justin Hileman2010-05-22 20:40:47 -04:00
0893a7d39d
using array keys instead of iteration over context for creating subcontext arrays. this fixes incorrect context stacks in recursive partials.
Justin Hileman2010-05-22 20:40:01 -04:00
95abf1d52b
Merge branch 'dev' into feature/fix-partials
Justin Hileman2010-05-22 20:30:52 -04:00
0fd759d8f7
Merge branch 'feature/test-coverage' into dev
Justin Hileman2010-05-22 20:27:53 -04:00
c79501b4ad
Pragmas don't need to be re-rendered for all sub-templates (i.e. sections). Moving call to _renderPragmas into main render() method.
Justin Hileman2010-05-22 20:27:31 -04:00
605dea1f79
Fix for infinite recursion in recursive partials example.
Justin Hileman2010-05-22 19:59:15 -04:00
dff5300932
Added [currently failing] test case for recursive partials.
Justin Hileman2010-05-22 19:25:27 -04:00
7f5f7a73fc
Stop passing context arrays around like a madman.
Justin Hileman2010-05-22 19:24:49 -04:00
eeb5b245d1
Possible fix for #1 - ability to use partials with an arbitrary (non-Mustache) view class.
Justin Hileman2010-05-22 18:34:24 -04:00
9f31a821e1
Merge branch 'feature/test-coverage' into dev
Justin Hileman2010-05-18 10:28:14 -04:00
4e41513443
Merge branch 'feature/test-coverage' into dev
Justin Hileman2010-04-30 20:49:23 -04:00
c6061baf49
Changed protected _render function to _renderTemplate to avoid ambiguity.
Justin Hileman2010-04-30 20:36:18 -04:00
7304344c51
Changing all protected functions to start with underscore, freeing up namespace for use in Mustache view classes.
Justin Hileman2010-04-30 20:34:31 -04:00
ab95bcd623
Merge branch 'feature/test-coverage' of github.com:bobthecow/mustache.php into feature/test-coverage
Justin Hileman2010-04-30 20:14:47 -04:00
1532416306
Prefix Mustache reserved member variables with underscore to prevent namespace collisions with actual view values.
Justin Hileman2010-04-30 20:12:37 -04:00