view blog_post.xml @ 17:d4ac7cef0cdd

Recherche du fichier de template dans le path. Cela permet de définir proprement un include_path en début de script, et de ne préciser que le nom du fichier template en paramètre du constructeur.
author Franck Deroche <webmaster@defr.org>
date Wed, 24 Oct 2007 20:49:32 +0200
parents 673d9845fc16
children
line wrap: on
line source
<?xml version='1.0' encoding='utf-8'?>
<div class='PostContent Weird' 
	xmlns='http://www.w3.org/1999/xhtml' 
	xmlns:tr='http://defr.net/2007/template'
	tr:id='post'>
	<h2><tr:postTitle /> | <span class='Date'><tr:postDate /></span></h2>
	<img tr:id='mood' class='mood' />
	
	<tr:postContent />

        <p class='postInfos'>
	<span class='Tags'><em>Tags</em> : <tr:postTags /></span><br />
	<a href="/blog/posts/321-Une_nuit_en_Corail_Lunea"><tr:postNumber /></a> - 
	<a href="/blog/posts/321-Une_nuit_en_Corail_Lunea"><tr:postComments /></a>
	</p>
</div>