Mercurial > genshi > mirror
diff examples/bench/myghty/base.myt @ 320:2295fb564250 trunk
Forgot to add myghty templates for [393].
author | cmlenz |
---|---|
date | Tue, 24 Oct 2006 16:44:32 +0000 |
parents | |
children |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/examples/bench/myghty/base.myt @@ -0,0 +1,26 @@ +<!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"> + +<%method wrap> +<%args scope="request"> + title +</%args> +<div id="header"> + <h1><% title %></h1> +</div> + +<% m.content() %> + +</%method> + +<div id="footer"></div> +</html> + +<%method greeting> +<%args> + name +</%args> +Hello, <% name | h %> +</%method>