Move examples into the test fixtures.

This commit is contained in:
Justin Hileman
2012-03-26 19:05:08 -07:00
parent 99a5e9b14a
commit 1430b27f86
77 changed files with 7 additions and 10 deletions
+9
View File
@@ -0,0 +1,9 @@
<?php
class Partials {
public $page = array(
'title' => 'Page Title',
'subtitle' => 'Page Subtitle',
'content' => 'Lorem ipsum dolor sit amet.',
);
}
+7
View File
@@ -0,0 +1,7 @@
<div>
{{> header }}
<div>
{{ page.content }}
</div>
</div>
+8
View File
@@ -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 }}