Added more complex dot notation example (from defunkt/mustache).
This commit is contained in:
@@ -2,13 +2,18 @@
|
||||
|
||||
/**
|
||||
* DotNotation example class. Uses DOT_NOTATION pragma.
|
||||
*
|
||||
*
|
||||
* @extends Mustache
|
||||
*/
|
||||
class DotNotation extends Mustache {
|
||||
public $foo = array(
|
||||
'bar' => array(
|
||||
'baz' => 'Qux',
|
||||
public $person = array(
|
||||
'name' => array('first' => 'Chris', 'last' => 'Firescythe'),
|
||||
'age' => 24,
|
||||
'hometown' => array(
|
||||
'city' => 'Cincinnati',
|
||||
'state' => 'OH',
|
||||
)
|
||||
);
|
||||
|
||||
public $normal = 'Normal';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user