Mam oto taki system szablonów:
<?php class Template { var $tmpl; var $dane; function Template ($name) { } function add($name, $value = '') { $this->dane[$name] = $value; } } function execute() { $this->tmpl); } } ?>
<?php include 'themes.php'; $tmpl = new Template('themes/index.html'); $tmpl->add('title', 'dsadsadsadsa'); $tmpl->add($dane); ?>
Problem polega na tym że nie czyta on CSS z szablonów. Nie ważne czy arkusz stylu jest w środku szablonu strony czy osobno, skrypt po prostu go nie czyta.
Jak temu zaradzić?