. */ // Very simple example require_once '../class.miniskel.php'; class mySkel extends miniSkel { protected function processLoopType_article($criterias, $content) { $articles = array( array( 'title' => 'Chinese Soup', 'text' => 'this is a french recipe of the soupe chinoise', ), array( 'title' => 'Flamenkuche', 'text' => 'This is delicious !', ) ); $out = ''; foreach ($articles as $art) { $out .= $this->parseVariables($content, $art); } return $out; } } $skel = new mySkel; $skel->assign('site_title', 'My web2.0 recipes'); $skel->display('simple_example.tpl'); ?>