Update the partials example to be a failing test case for partial indenting.

This commit is contained in:
Justin Hileman
2012-03-14 13:20:30 -07:00
parent 367013f01c
commit fe9fccb441
5 changed files with 23 additions and 11 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
<?php <?php
class Partials { class Partials {
public $name = 'ilmich'; public $page = array(
public $data = array( 'title' => 'Page Title',
array('name' => 'federica', 'age' => 27, 'gender' => 'female'), 'subtitle' => 'Page Subtitle',
array('name' => 'marco', 'age' => 32, 'gender' => 'male'), 'content' => 'Lorem ipsum dolor sit amet.',
); );
} }
+7 -2
View File
@@ -1,2 +1,7 @@
Children of {{name}}: <div>
{{>children}} {{> header }}
<div>
{{ page.content }}
</div>
</div>
+8 -3
View File
@@ -1,3 +1,8 @@
Children of ilmich: <div>
federica - 27 - female <h1>Page Title</h1>
marco - 32 - male <h2>Page Subtitle</h2>
<div>
Lorem ipsum dolor sit amet.
</div>
</div>
@@ -1,2 +0,0 @@
{{#data}}{{name}} - {{age}} - {{gender}}
{{/data}}
@@ -0,0 +1,4 @@
{{# page }}
<h1>{{ title }}</h1>
<h2>{{ subtitle }}</h2>
{{/ page }}