Преглед на файлове

Moved test for #11 into 'escaped' example.

Justin Hileman преди 15 години
родител
ревизия
e3c7afde46
променени са 5 файла, в които са добавени 4 реда и са изтрити 5 реда
  1. 1 1
      examples/escaped/Escaped.php
  2. 1 1
      examples/escaped/escaped.txt
  3. 0 1
      examples/simple/Simple.php
  4. 1 1
      examples/simple/simple.mustache
  5. 1 1
      examples/simple/simple.txt

+ 1 - 1
examples/escaped/Escaped.php

@@ -1,5 +1,5 @@
 <?php
 
 class Escaped extends Mustache {
-	public $title = "Bear > Shark";
+	public $title = '"Bear" > "Shark"';
 }

+ 1 - 1
examples/escaped/escaped.txt

@@ -1 +1 @@
-<h1>Bear &gt; Shark</h1>
+<h1>&quot;Bear&quot; &gt; &quot;Shark&quot;</h1>

+ 0 - 1
examples/simple/Simple.php

@@ -2,7 +2,6 @@
 
 class Simple extends Mustache {
 	public $name = "Chris";
-	public $last_name = '"Bob"';
 	public $value = 10000;
 
 	public function taxed_value() {

+ 1 - 1
examples/simple/simple.mustache

@@ -1,4 +1,4 @@
-Hello {{name}} {{last_name}}
+Hello {{name}}
 You have just won ${{value}}!
 {{#in_ca}}
 Well, ${{ taxed_value }}, after taxes.

+ 1 - 1
examples/simple/simple.txt

@@ -1,3 +1,3 @@
-Hello Chris &quot;Bob&quot;
+Hello Chris
 You have just won $10000!
 Well, $6000, after taxes.