compile('index.html'); echo $tpl->render(array( 'style' => array('style.css'), 'script' => array(array('name' => 'script1.js'), array('name' => 'script2.js')), 'content' => 'test' ));