Moved test for #11 into 'escaped' example.

This commit is contained in:
Justin Hileman
2010-08-17 15:27:46 -04:00
parent 758027bd91
commit e3c7afde46
5 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
class Escaped extends Mustache {
public $title = "Bear > Shark";
public $title = '"Bear" > "Shark"';
}
+1 -1
View File
@@ -1 +1 @@
<h1>Bear &gt; Shark</h1>
<h1>&quot;Bear&quot; &gt; &quot;Shark&quot;</h1>
-1
View File
@@ -2,7 +2,6 @@
class Simple extends Mustache {
public $name = "Chris";
public $last_name = '"Bob"';
public $value = 10000;
public function taxed_value() {
+1 -1
View File
@@ -1,4 +1,4 @@
Hello {{name}} {{last_name}}
Hello {{name}}
You have just won ${{value}}!
{{#in_ca}}
Well, ${{ taxed_value }}, after taxes.
+1 -1
View File
@@ -1,3 +1,3 @@
Hello Chris &quot;Bob&quot;
Hello Chris
You have just won $10000!
Well, $6000, after taxes.