Mercurial > genshi > mirror
diff examples/basic/run.py @ 21:b4d17897d053 trunk
* 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 | 74cc70129d04 |
children | 1da51d718391 |
line wrap: on
line diff
--- a/examples/basic/run.py +++ b/examples/basic/run.py @@ -9,9 +9,7 @@ def test(): base_path = os.path.dirname(os.path.abspath(__file__)) - loader = TemplateLoader([os.path.join(base_path, 'common'), - os.path.join(base_path, 'module')], - auto_reload=True) + loader = TemplateLoader([base_path], auto_reload=True) start = datetime.now() tmpl = loader.load('test.html')