diff --git a/Mustache.php b/Mustache.php index 48b4e1b..01f16ee 100644 --- a/Mustache.php +++ b/Mustache.php @@ -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; } diff --git a/examples/inverted_double_section/InvertedDoubleSection.php b/examples/inverted_double_section/InvertedDoubleSection.php new file mode 100644 index 0000000..3dc2231 --- /dev/null +++ b/examples/inverted_double_section/InvertedDoubleSection.php @@ -0,0 +1,6 @@ +