Mercurial > genshi > genshi-test
diff examples/basic/common/macros.html @ 3:e86dcec16d55
Added basic example.
author | cmlenz |
---|---|
date | Sat, 03 Jun 2006 12:28:53 +0000 |
parents | |
children |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/examples/basic/common/macros.html @@ -0,0 +1,12 @@ +<div xmlns:py="http://purl.org/kid/ns#" + py:strip=""> + <div py:def="macro1">reference me, please</div> + <div py:def="macro2(name, classname='expanded')" class="${classname}"> + Hello ${name.title()} + </div> + <span py:match="greeting" class="greeting"> + Hello ${select('@name')} + </span> + <span py:match="span[@class='greeting']" style="text-decoration: underline" + py:content="select('text()')"/> +</div>