initial commit; version 22.5.12042
This commit is contained in:
9
tests/templates/simple/Simple.php
Normal file
9
tests/templates/simple/Simple.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
$arr = array ('name' => "Chris",
|
||||
'value' => 10000,
|
||||
'in_ca' => TRUE
|
||||
);
|
||||
$arr['taxed_value'] = $arr['value'] - ($arr['value'] * 0.4);
|
||||
|
||||
echo json_encode($arr);
|
1
tests/templates/simple/simple.json
Normal file
1
tests/templates/simple/simple.json
Normal file
@ -0,0 +1 @@
|
||||
{"name":"Chris","value":10000,"in_ca":true,"taxed_value":6000}
|
5
tests/templates/simple/simple.mustache
Normal file
5
tests/templates/simple/simple.mustache
Normal file
@ -0,0 +1,5 @@
|
||||
Hello {{name}}
|
||||
You have just won ${{value}}!
|
||||
{{#in_ca}}
|
||||
Well, ${{ taxed_value }}, after taxes.
|
||||
{{/in_ca}}
|
3
tests/templates/simple/simple.txt
Normal file
3
tests/templates/simple/simple.txt
Normal file
@ -0,0 +1,3 @@
|
||||
Hello Chris
|
||||
You have just won $10000!
|
||||
Well, $6000, after taxes.
|
Reference in New Issue
Block a user