Mercurial > defr > templates
view simple.php @ 5:888b9807b2b3
Ajout de retours en fin de ligne
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Sun, 21 Oct 2007 13:20:25 +0200 |
parents | c86959030ae8 |
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; ?>