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
class Partials {
public $name = 'ilmich';
public $data = array(
array('name' => 'federica', 'age' => 27, 'gender' => 'female'),
array('name' => 'marco', 'age' => 32, 'gender' => 'male'),
public $page = array(
'title' => 'Page Title',
'subtitle' => 'Page Subtitle',
'content' => 'Lorem ipsum dolor sit amet.',
);
}
+7 -2
View File
@@ -1,2 +1,7 @@
Children of {{name}}:
{{>children}}
<div>
{{> header }}
<div>
{{ page.content }}
</div>
</div>
+8 -3
View File
@@ -1,3 +1,8 @@
Children of ilmich:
federica - 27 - female
marco - 32 - male
<div>
<h1>Page Title</h1>
<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 }}