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