view examples/bench/myghty/base.myt @ 610:6a37018199fd

* XInclude elements in markup templates now support the `parse` attribute; when set to "xml" (the default), the include is processed as before, but when set to "text", the included template is parsed as a text template using the new syntax (ticket #101). * If an include is found when parsing a template, but no template loader has been specified, a `TemplateSyntaxError` is raised.
author cmlenz
date Mon, 27 Aug 2007 23:20:47 +0000
parents 1f4e66680f9f
children
line wrap: on
line source
<!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>
Copyright (C) 2012-2017 Edgewall Software