| Authors: | Gael Pasgrimaud |
|---|---|
| Date: | $Date: 2009-05-25$ |
- Concept
- Configuration
- Extensions python

Configuration sous forme de fichier xml:
Balise thème:
<theme href="/theme.html" />
Page html destinée à recevoir le contenu des applications:
<html>
<head><title>Mon site</title></head>
<body>
<div id="content">Mon contenu</div>
</body>
</html>
Proxy = Source html
<proxy path="/wiki"> <dest href="http://wiki.afpy.org" /> </proxy>
<rules class="wiki">
<replace content="body" theme="#content" />
<append href="/auth_infos.html"
content="#infos" theme="#header" />
<drop content="link[href $='/pourrite.css']" />
</rules>
Heureusement il y a pyref !
<proxy path="/"> <dest pyref="mymodule:get_proxy_dest" /> </proxy> <match domain="trac.*" class="common trac" /> <match path="/wiki" class="common wiki" />
Ajout d'une règle <pyquery />:
<pyquey pyref="mymodule:my_function" />
Et c'est la fête:
def my_function(content, theme):
content.remove('#pourrite')
afpy.org utilise Deliverance