Mercurial > defr > DualBlog
diff templates/post.xml @ 11:ff57b45eda37
Changement profond de l'index. Utilisation des templates.
Dual Blog utilise maintenant intimement la libraire de templates
que l'on peut trouver sur http://hg.defr.org/defr/templates,
ce qui permet d'eviter de mixer du code PHP avec du HTML.
Accessoirement, on est aussi assurer d'avoir du XML valide,
puisque c'est l'API DOM qui est utilisée pour générer la
sortie.
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Wed, 24 Oct 2007 20:06:00 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/post.xml Wed Oct 24 20:06:00 2007 +0200 @@ -0,0 +1,16 @@ +<?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' /> + + <tr:postContent /> + + <p class='postInfos'> + <span class='Tags'><em>Tags</em> : <tr:postTags /></span><br /> + <a tr:id='linkPostNumber'><tr:postNumber /></a> - + <a tr:id='linkPostComments'><tr:postComments /></a> + </p> +</div>