Mercurial > genshi > genshi-test
diff examples/basic/kidrun.py @ 21:eca77129518a
* Include paths are now interpreted relative to the path of the including template. Closes #3.
* The filename is now included as first item in the `pos` tuple of stream events.
* Simplified the "basic" example so that it actually ''is'' basic.
* Added a more complex example using nested relative includes in [source:/trunk/examples/includes/ examples/includes].
author | cmlenz |
---|---|
date | Tue, 20 Jun 2006 13:05:37 +0000 |
parents | e86dcec16d55 |
children | b0fd16111f2e |
line wrap: on
line diff
--- a/examples/basic/kidrun.py +++ b/examples/basic/kidrun.py @@ -6,8 +6,7 @@ def test(): base_path = os.path.dirname(os.path.abspath(__file__)) - kid.path = kid.TemplatePath([os.path.join(base_path, 'common'), - os.path.join(base_path, 'module')]) + kid.path = kid.TemplatePath([base_path]) ctxt = dict(hello='<world>', hey='ZYX', bozz=None, items=['Number %d' % num for num in range(1, 15)],