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:
@@ -81,8 +81,6 @@ And render it:
|
||||
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
|
||||
"unclosed section" exception.
|
||||
* 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!! >
|
||||
< RAWR!! >
|
||||
Reference in New Issue
Block a user