소스 검색

Merge branch 'feature/test-coverage' into dev

Justin Hileman 15 년 전
부모
커밋
0fd759d8f7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Mustache.php

+ 1 - 1
Mustache.php

@@ -99,6 +99,7 @@ class Mustache {
 			$this->_context = array($this);
 		}
 
+		$template = $this->_renderPragmas($template, $context);
 		return $this->_renderTemplate($template, $this->_context);
 	}
 
@@ -128,7 +129,6 @@ class Mustache {
 	 * @return string Rendered Mustache template.
 	 */
 	protected function _renderTemplate($template, &$context) {
-		$template = $this->_renderPragmas($template, $context);
 		$template = $this->_renderSection($template, $context);
 		return $this->_renderTags($template, $context);
 	}