Move examples into the test fixtures.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
class Partials {
|
||||
public $page = array(
|
||||
'title' => 'Page Title',
|
||||
'subtitle' => 'Page Subtitle',
|
||||
'content' => 'Lorem ipsum dolor sit amet.',
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<div>
|
||||
{{> header }}
|
||||
|
||||
<div>
|
||||
{{ page.content }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,8 @@
|
||||
<div>
|
||||
<h1>Page Title</h1>
|
||||
<h2>Page Subtitle</h2>
|
||||
|
||||
<div>
|
||||
Lorem ipsum dolor sit amet.
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,4 @@
|
||||
{{# page }}
|
||||
<h1>{{ title }}</h1>
|
||||
<h2>{{ subtitle }}</h2>
|
||||
{{/ page }}
|
||||
Reference in New Issue
Block a user