Переменные через точку

This commit is contained in:
Федор Подлеснов 2015-12-01 15:39:25 +03:00
parent 88fc338b55
commit a993c96f33
3 changed files with 57 additions and 20 deletions

View file

@ -2,8 +2,11 @@
require_once 'klein.php';
echo Klein::render('index.html', array(
$tpl = new Klein();
$tpl->compile('index.html');
echo $tpl->render(array(
'style' => array('style.css'),
'script' => array('script.js'),
'script' => array(array('name' => 'script1.js'), array('name' => 'script2.js')),
'content' => 'test'
));