summaryrefslogtreecommitdiff
path: root/examples/bench/myghty/base.myt
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bench/myghty/base.myt')
-rw-r--r--examples/bench/myghty/base.myt29
1 files changed, 29 insertions, 0 deletions
diff --git a/examples/bench/myghty/base.myt b/examples/bench/myghty/base.myt
new file mode 100644
index 0000000..af0474a
--- /dev/null
+++ b/examples/bench/myghty/base.myt
@@ -0,0 +1,29 @@
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
+<%args scope="request">
+ title
+</%args>
+
+<& REQUEST:header &>
+
+<body>
+<div id="header">
+ <h1><% title %></h1>
+</div>
+
+% m.call_next()
+
+<div id="footer"></div>
+
+</body>
+</html>
+
+
+<%method greeting>
+<%args>
+ name
+</%args>
+Hello, <% name | h %>
+</%method>