Фильтры и Циклы

This commit is contained in:
a.a.pozdina 2015-12-02 00:39:27 +03:00
parent 8a2eead4a0
commit f02a0bac42
3 changed files with 20 additions and 30 deletions

View file

@ -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']
));