Update examples for v2.0
This commit is contained in:
@@ -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,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,5 +1,4 @@
|
||||
* Chris Firescythe
|
||||
* 24
|
||||
* Cycling, Fishing
|
||||
* Cincinnati, OH
|
||||
* Normal
|
||||
* Normal
|
||||
Reference in New Issue
Block a user