Explorar o código

Example for dot notation pragma.

Justin Hileman %!s(int64=15) %!d(string=hai) anos
pai
achega
d2ff6fa1ac

+ 14 - 0
examples/dot_notation/DotNotation.php

@@ -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',
+		)
+	);
+}

+ 1 - 0
examples/dot_notation/dot_notation.mustache

@@ -0,0 +1 @@
+Grandchild is "{{foo.bar.baz}}".

+ 1 - 0
examples/dot_notation/dot_notation.txt

@@ -0,0 +1 @@
+Grandchild is "Qux".