From b7a12665ea003b3f9ffd3c43a02d3136b48e9b71 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Mon, 13 Jun 2011 15:12:43 -0400 Subject: [PATCH] Add a VERSION constant. closes #45 --- Mustache.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Mustache.php b/Mustache.php index 5b7b57b..ed27c59 100644 --- a/Mustache.php +++ b/Mustache.php @@ -14,6 +14,8 @@ */ class Mustache { + const VERSION = '0.7.1-dev'; + /** * Should this Mustache throw exceptions when it finds unexpected tags? * @@ -175,7 +177,7 @@ class Mustache { public function render($template = null, $view = null, $partials = null) { if ($template === null) $template = $this->_template; if ($partials !== null) $this->_partials = $partials; - + $otag_orig = $this->_otag; $ctag_orig = $this->_ctag; @@ -190,7 +192,7 @@ class Mustache { $this->_otag = $otag_orig; $this->_ctag = $ctag_orig; - + return $template; } @@ -221,7 +223,7 @@ class Mustache { protected function _renderTemplate($template) { if ($section = $this->_findSection($template)) { list($before, $type, $tag_name, $content, $after) = $section; - + $rendered_before = $this->_renderTags($before); $rendered_content = '';