view examples/bench/kid/base.kid @ 475:bb939ed3058c

Added include directive for text templates (#115). Thanks to Alastair for the original patch.
author cmlenz
date Fri, 11 May 2007 21:54:49 +0000
parents e9a3930f8823
children
line wrap: on
line source
<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>
Copyright (C) 2012-2017 Edgewall Software