view examples/bench/markup/base.html @ 149:7306bf730ff3

`Template.generate()` now accepts the context data as keyword arguments, so that you don't have to import the `Context` class every time you want to pass data into a template.
author cmlenz
date Tue, 15 Aug 2006 21:59:07 +0000
parents cc034182061e
children
line wrap: on
line source
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://markup.edgewall.org/"
      py:strip="">

  <p py:def="greeting(name)">
    Hello, ${name}!
  </p>

  <body py:match="body">
    <div id="header">
      <h1>${title}</h1>
    </div>
    ${select('*')}
    <div id="footer" />
  </body>

</html>
Copyright (C) 2012-2017 Edgewall Software