diff examples/basic/common/macros.html @ 3:518a8520a6e1 trunk

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>
Copyright (C) 2012-2017 Edgewall Software