summaryrefslogtreecommitdiff
path: root/examples/bench/kid/base.kid
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bench/kid/base.kid')
-rw-r--r--examples/bench/kid/base.kid15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/bench/kid/base.kid b/examples/bench/kid/base.kid
new file mode 100644
index 0000000..061e9dd
--- /dev/null
+++ b/examples/bench/kid/base.kid
@@ -0,0 +1,15 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:py="http://purl.org/kid/ns#">
+
+ <p py:def="greeting(name)">
+ Hello, ${name}!
+ </p>
+
+ <body py:match="item.tag == '{http://www.w3.org/1999/xhtml}body'" py:strip="">
+ <div id="header">
+ <h1>${title}</h1>
+ </div>
+ ${item}
+ <div id="footer" />
+ </body>
+</html>