Pragmas in parent templates no longer apply to partials (as of a few commits ago). Added test case, removed known issue from readme.

This commit is contained in:
Justin Hileman
2010-05-22 20:50:05 -04:00
parent 5ade8a5ee3
commit df1b3c8e7d
4 changed files with 13 additions and 2 deletions
-2
View File
@@ -81,8 +81,6 @@ And render it:
Known Issues Known Issues
------------ ------------
* Pragmas don't un-apply... Instead of applying only to a specific template, pragmas are applied
to all subsequent templates and partials rendered by this Mustache instance.
* Sections don't respect delimiter changes -- `delimiters` example currently fails with an * Sections don't respect delimiter changes -- `delimiters` example currently fails with an
"unclosed section" exception. "unclosed section" exception.
* Test coverage is incomplete. * Test coverage is incomplete.
@@ -0,0 +1,8 @@
<?php
class PragmasInPartials extends Mustache {
public $say = '< RAWR!! >';
protected $_partials = array(
'dinosaur' => '{{say}}'
);
}
@@ -0,0 +1,3 @@
{{%UNESCAPED}}
{{say}}
{{>dinosaur}}
@@ -0,0 +1,2 @@
< RAWR!! >
&lt; RAWR!! &gt;