initial commit; version 22.5.12042
This commit is contained in:
35
tests/templates/sections_nested/SectionsNested.php
Normal file
35
tests/templates/sections_nested/SectionsNested.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
class SectionsNested
|
||||
{
|
||||
public $name = 'Little Mac';
|
||||
|
||||
public function enemies()
|
||||
{
|
||||
return array(
|
||||
array(
|
||||
'name' => 'Von Kaiser',
|
||||
'enemies' => array(
|
||||
array('name' => 'Super Macho Man'),
|
||||
array('name' => 'Piston Honda'),
|
||||
array('name' => 'Mr. Sandman'),
|
||||
)
|
||||
),
|
||||
array(
|
||||
'name' => 'Mike Tyson',
|
||||
'enemies' => array(
|
||||
array('name' => 'Soda Popinski'),
|
||||
array('name' => 'King Hippo'),
|
||||
array('name' => 'Great Tiger'),
|
||||
array('name' => 'Glass Joe'),
|
||||
)
|
||||
),
|
||||
array(
|
||||
'name' => 'Don Flamenco',
|
||||
'enemies' => array(
|
||||
array('name' => 'Bald Bull'),
|
||||
)
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
7
tests/templates/sections_nested/sections_nested.mustache
Normal file
7
tests/templates/sections_nested/sections_nested.mustache
Normal file
@ -0,0 +1,7 @@
|
||||
Enemies of {{ name }}:
|
||||
{{# enemies }}
|
||||
{{ name }} ... who also has enemies:
|
||||
{{# enemies }}
|
||||
--> {{ name }}
|
||||
{{/ enemies }}
|
||||
{{/ enemies }}
|
12
tests/templates/sections_nested/sections_nested.txt
Normal file
12
tests/templates/sections_nested/sections_nested.txt
Normal file
@ -0,0 +1,12 @@
|
||||
Enemies of Little Mac:
|
||||
Von Kaiser ... who also has enemies:
|
||||
--> Super Macho Man
|
||||
--> Piston Honda
|
||||
--> Mr. Sandman
|
||||
Mike Tyson ... who also has enemies:
|
||||
--> Soda Popinski
|
||||
--> King Hippo
|
||||
--> Great Tiger
|
||||
--> Glass Joe
|
||||
Don Flamenco ... who also has enemies:
|
||||
--> Bald Bull
|
Reference in New Issue
Block a user