Mercurial > defr > templates
view simple.php @ 10:04b1d6bca316
Non-utilisée, il s'agit d'une ancienne version de parseSelector
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Sun, 21 Oct 2007 16:28:30 +0200 |
parents | 888b9807b2b3 |
children | 51645aad97a8 |
line wrap: on
line source
<?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; ?>