Mercurial > defr > templates
diff simple.php @ 0:c86959030ae8
Import initial
author | Franck Deroche <webmaster@defr.net> |
---|---|
date | Sat, 10 Mar 2007 21:48:42 +0100 |
parents | |
children | 888b9807b2b3 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/simple.php Sat Mar 10 21:48:42 2007 +0100 @@ -0,0 +1,18 @@ +<?php + require 'class.template.php'; + $tpl = new Template('simple.xml'); + $params = array( + 'title' => 'Ceci est un test', + '#hello' => 'Bonjour tout l\'monde!', + '#hello@class' => 'test3', + 'test' => 'Ceci devrait remplacer l\'element test dans l\'espace de nom t.', + 'color' => 'vert', + '#attr@class' => 'test', + '#choses' => array( + array('li' => 'Lorem ipsum', 'li@class' => 'test'), + array('li' => 'sit dolor'), + array('li' => 'amet.') + )); + $tpl->setParams($params); + echo $tpl; +?> \ No newline at end of file