Merge remote-tracking branch 'KevBurnsJr/delimiters_in_partials' into feature/delimiters-partials-and-sections

This commit is contained in:
Justin Hileman
2011-06-12 23:46:42 -04:00
+12
View File
@@ -196,6 +196,18 @@ class MustacheTest extends PHPUnit_Framework_TestCase {
$this->assertEquals('Zappa, Frank', $m->render('{{last_name}}, {{first_name}}', array('first_name' => 'Frank', 'last_name' => 'Zappa')));
}
/**
* @group partials
*/
public function testRenderDelimitersInSections() {
$m = new Mustache('{{#a}}{{=<% %>=}}{{b}} c<%={{ }}=%>{{/a}}');
$this->assertEquals('{{b}} c', $m->render(null, array(
'a' => array(
array('b' => 'Do Not Render')
)
)));
}
/**
* Mustache should allow newlines (and other whitespace) in comments and all other tags.
*