@@ -114,7 +114,7 @@ class Mustache {
* @return string
*/
protected function renderSection($template, &$context) {
- if (strpos($template, $this->otag . '#') === false) {
+ if (strpos($template, $this->otag . '#') === false && strpos($template, $this->otag . '^') === false) {
return $template;
}
@@ -0,0 +1,6 @@
+<?php
+
+class InvertedDoubleSection extends Mustache {
+ public $t = false;
+ public $two = 'second';
+}
@@ -0,0 +1,7 @@
+{{^t}}
+ * first
+{{/t}}
+* {{two}}
+ * third
@@ -0,0 +1,3 @@
+* first
+* second
+* third