initial commit; version 22.5.12042
This commit is contained in:
15
tests/templates/dot_notation/DotNotation.php
Normal file
15
tests/templates/dot_notation/DotNotation.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
$arr = array(
|
||||
'person' => array(
|
||||
'name' => array('first' => 'Chris', 'last' => 'Firescythe'),
|
||||
'age' => 24,
|
||||
'hometown' => array(
|
||||
'city' => 'Cincinnati',
|
||||
'state' => 'OH',
|
||||
)
|
||||
),
|
||||
'normal' => 'Normal'
|
||||
);
|
||||
|
||||
echo json_encode($arr);
|
1
tests/templates/dot_notation/dot_notation.json
Normal file
1
tests/templates/dot_notation/dot_notation.json
Normal file
@ -0,0 +1 @@
|
||||
{"person":{"name":{"first":"Chris","last":"Firescythe"},"age":24,"hometown":{"city":"Cincinnati","state":"OH"}},"normal":"Normal"}
|
4
tests/templates/dot_notation/dot_notation.mustache
Normal file
4
tests/templates/dot_notation/dot_notation.mustache
Normal file
@ -0,0 +1,4 @@
|
||||
* {{person.name.first}} {{person.name.last}}
|
||||
* {{person.age}}
|
||||
* {{person.hometown.city}}, {{person.hometown.state}}
|
||||
* {{normal}}
|
4
tests/templates/dot_notation/dot_notation.txt
Normal file
4
tests/templates/dot_notation/dot_notation.txt
Normal file
@ -0,0 +1,4 @@
|
||||
* Chris Firescythe
|
||||
* 24
|
||||
* Cincinnati, OH
|
||||
* Normal
|
Reference in New Issue
Block a user