Примеры в отдельную папку
This commit is contained in:
parent
0f62ba3a29
commit
313413931b
7 changed files with 6 additions and 6 deletions
19
example.php
19
example.php
|
|
@ -1,19 +0,0 @@
|
|||
<?php
|
||||
|
||||
require_once 'klein.php';
|
||||
|
||||
function title($x) {
|
||||
return ucfirst($x);
|
||||
}
|
||||
|
||||
$tpl = new Klein();
|
||||
$tpl->compile('tempalte.html');
|
||||
|
||||
echo $tpl->render(array(
|
||||
'pagename' => 'awesome people',
|
||||
'authors' => [['name' => 'Paul', 'age' => 10], ['name' => 'Jim', 'age' => 11], ['name' => 'Jane', 'age' => 12]],
|
||||
'city'=> [
|
||||
'Yaroslaval' => 1,
|
||||
'Moscow' => 2
|
||||
]
|
||||
));
|
||||
Loading…
Add table
Add a link
Reference in a new issue