From ce019bec8199c50d05b85753b53f898e3180915a Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Mon, 26 Apr 2010 23:27:21 -0400 Subject: [PATCH] Removing renderSection short-circuit, as it doesn't actually improve performance. --- Mustache.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Mustache.php b/Mustache.php index 01f16ee..8754c68 100644 --- a/Mustache.php +++ b/Mustache.php @@ -114,10 +114,6 @@ class Mustache { * @return string */ protected function renderSection($template, &$context) { - if (strpos($template, $this->otag . '#') === false && strpos($template, $this->otag . '^') === false) { - return $template; - } - $otag = $this->prepareRegEx($this->otag); $ctag = $this->prepareRegEx($this->ctag); $regex = '/' . $otag . '(\\^|\\#)(.+?)' . $ctag . '\\s*([\\s\\S]+?)' . $otag . '\\/\\2' . $ctag . '\\s*/m';