documentation - rules and conventions, creating a page
This commit is contained in:
parent
80f72e7dc9
commit
fd1ea11170
4 changed files with 97 additions and 3 deletions
10
public/site/templates/example.json.php
Normal file
10
public/site/templates/example.json.php
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
$specificData = [
|
||||
"exampleField" => $page->exampleField(),
|
||||
"exampleHardData" => 'Example hard value'
|
||||
];
|
||||
|
||||
$data = array_merge($genericData, $specificData);
|
||||
|
||||
echo json_encode($data);
|
||||
1
public/site/templates/example.php
Normal file
1
public/site/templates/example.php
Normal file
|
|
@ -0,0 +1 @@
|
|||
<?php snippet('generic-template') ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue