Moved test for #11 into 'escaped' example.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
class Escaped extends Mustache {
|
||||
public $title = "Bear > Shark";
|
||||
public $title = '"Bear" > "Shark"';
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<h1>Bear > Shark</h1>
|
||||
<h1>"Bear" > "Shark"</h1>
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
class Simple extends Mustache {
|
||||
public $name = "Chris";
|
||||
public $last_name = '"Bob"';
|
||||
public $value = 10000;
|
||||
|
||||
public function taxed_value() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Hello {{name}} {{last_name}}
|
||||
Hello {{name}}
|
||||
You have just won ${{value}}!
|
||||
{{#in_ca}}
|
||||
Well, ${{ taxed_value }}, after taxes.
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
Hello Chris "Bob"
|
||||
Hello Chris
|
||||
You have just won $10000!
|
||||
Well, $6000, after taxes.
|
||||
|
||||
Reference in New Issue
Block a user