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.
This commit is contained in:
Justin Hileman
2010-05-16 15:04:22 -04:00
parent df36b205c1
commit 2c3984a604
4 changed files with 60 additions and 3 deletions
+2
View File
@@ -0,0 +1,2 @@
Children of {{name}}:
{{>children}}