Example for dot notation pragma.
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DotNotation example class. Uses DOT_NOTATION pragma.
|
||||||
|
*
|
||||||
|
* @extends Mustache
|
||||||
|
*/
|
||||||
|
class DotNotation extends Mustache {
|
||||||
|
public $foo = array(
|
||||||
|
'bar' => array(
|
||||||
|
'baz' => 'Qux',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Grandchild is "{{foo.bar.baz}}".
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
Grandchild is "Qux".
|
||||||
Reference in New Issue
Block a user