Фильтры и Циклы
This commit is contained in:
parent
8a2eead4a0
commit
f02a0bac42
3 changed files with 20 additions and 30 deletions
|
|
@ -2,11 +2,14 @@
|
|||
|
||||
require_once 'klein.php';
|
||||
|
||||
function title($x) {
|
||||
return ucfirst($x);
|
||||
}
|
||||
|
||||
$tpl = new Klein();
|
||||
$tpl->compile('index.html');
|
||||
|
||||
echo $tpl->render(array(
|
||||
'style' => array('style.css'),
|
||||
'script' => array(array('name' => 'script1.js'), array('name' => 'script2.js')),
|
||||
'content' => 'test'
|
||||
'pagename' => 'awesome people',
|
||||
'authors' => ['Paul', 'Jim', 'Jane']
|
||||
));
|
||||
Loading…
Add table
Add a link
Reference in a new issue