浏览代码

Example for dot notation pragma.

Justin Hileman 15 年之前
父节点
当前提交
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".