Relocating _renderTags($before) since _renderTags now has the ability to modify delimiters
This commit is contained in:
+4
-1
@@ -219,9 +219,12 @@ class Mustache {
|
|||||||
* @return string Rendered Mustache template.
|
* @return string Rendered Mustache template.
|
||||||
*/
|
*/
|
||||||
protected function _renderTemplate($template) {
|
protected function _renderTemplate($template) {
|
||||||
|
|
||||||
if ($section = $this->_findSection($template)) {
|
if ($section = $this->_findSection($template)) {
|
||||||
list($before, $type, $tag_name, $content, $after) = $section;
|
list($before, $type, $tag_name, $content, $after) = $section;
|
||||||
|
|
||||||
|
$rendered_before = $this->_renderTags($before);
|
||||||
|
|
||||||
$renderedContent = '';
|
$renderedContent = '';
|
||||||
$val = $this->_getVariable($tag_name);
|
$val = $this->_getVariable($tag_name);
|
||||||
switch($type) {
|
switch($type) {
|
||||||
@@ -252,7 +255,7 @@ class Mustache {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->_renderTags($before) . $renderedContent . $this->_renderTemplate($after);
|
return $rendered_before . $renderedContent . $this->_renderTemplate($after);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->_renderTags($template);
|
return $this->_renderTags($template);
|
||||||
|
|||||||
Reference in New Issue
Block a user