Permalink
Browse files

Merge branch 'dev' into feature/mustache-spec

  • Loading branch information...
2 parents 596fb3c + f3cb087 commit 963faf5de912d74951479a19d8261c75be9a4564 @bobthecow bobthecow committed Oct 30, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 Mustache.php
View
@@ -385,7 +385,7 @@ protected function _renderTags($template) {
$otag = preg_quote($this->_otag, '/');
$ctag = preg_quote($this->_ctag, '/');
- $this->_tagRegEx = '/' . $otag . "([#\^\/=!>\\{&])?(.+?)\\1?" . $ctag . "+/s";
+ $this->_tagRegEx = '/' . $otag . "([#\^\/=!<>\\{&])?(.+?)\\1?" . $ctag . "+/s";
$html = '';
$matches = array();
@@ -442,6 +442,7 @@ protected function _renderTag($modifier, $tag_name) {
return $this->_renderComment($tag_name);
break;
case '>':
+ case '<':
return $this->_renderPartial($tag_name);
break;
case '{':
@@ -521,7 +522,7 @@ protected function _changeDelimiter($tag_name) {
$otag = preg_quote($this->_otag, '/');
$ctag = preg_quote($this->_ctag, '/');
- $this->_tagRegEx = '/' . $otag . "([#\^\/=!>\\{&])?(.+?)\\1?" . $ctag . "+/s";
+ $this->_tagRegEx = '/' . $otag . "([#\^\/=!<>\\{&])?(.+?)\\1?" . $ctag . "+/s";
return '';
}

0 comments on commit 963faf5

Please sign in to comment.