Update the partials example to be a failing test case for partial indenting.
This commit is contained in:
@@ -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.',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,7 @@
|
|||||||
Children of {{name}}:
|
<div>
|
||||||
{{>children}}
|
{{> header }}
|
||||||
|
|
||||||
|
<div>
|
||||||
|
{{ page.content }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
@@ -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 }}
|
||||||
Reference in New Issue
Block a user