Using the tutorial on the Genshi site, I've created a layout template,
as well as a content template. I'm rendering via this call:
MarkupTemplate(open(path_to_file)).generate().render('xhtml',
doctype='html', out=open(os.path.join(path, base_name + '.html'), 'w'))
HTML is output, but it is only the content of the content template.
Nothing from the layout template is included, BUT the
<xi:include href="templates/layout.html" />
is not in the output. The documents say an error will be raised if the
include URL is not found, but if I do something like
<xi:include href="ZZZZZtemplates/layout.html" />
no error is raise, so it appears the include URL is not even being
accessed.
Bug? Or did I miss something obvious?
layout:
http://pastebin.com/m5c5d7632
content:
http://pastebin.com/m339a2d1f
output:
http://pastebin.com/m2581a17d
Thanks!
j
--
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key:
http://pgp.mit.edu/ ID 0x14EA086E