Update examples for v2.0

This commit is contained in:
Justin Hileman
2012-02-29 18:02:36 -08:00
parent d2136d91b3
commit 1d116d1b77
40 changed files with 69 additions and 132 deletions
+3 -9
View File
@@ -1,19 +1,13 @@
<?php
/**
* DotNotation example class. Uses DOT_NOTATION pragma.
*
* @extends Mustache
*/
class DotNotation extends Mustache {
class DotNotation {
public $person = array(
'name' => array('first' => 'Chris', 'last' => 'Firescythe'),
'age' => 24,
'hobbies' => array('Cycling', 'Fishing'),
'hometown' => array(
'city' => 'Cincinnati',
'city' => 'Cincinnati',
'state' => 'OH',
),
)
);
public $normal = 'Normal';
+1 -2
View File
@@ -1,5 +1,4 @@
* {{person.name.first}} {{person.name.last}}
* {{person.age}}
* {{person.hobbies.0}}, {{person.hobbies.1}}
* {{person.hometown.city}}, {{person.hometown.state}}
* {{normal}}
* {{normal}}
+1 -2
View File
@@ -1,5 +1,4 @@
* Chris Firescythe
* 24
* Cycling, Fishing
* Cincinnati, OH
* Normal
* Normal