|
|
@ -225,7 +225,7 @@ class Bureau(object):
|
|
|
|
# run template with kwargs
|
|
|
|
# run template with kwargs
|
|
|
|
templfile = os.path.join(self.mdir, template)
|
|
|
|
templfile = os.path.join(self.mdir, template)
|
|
|
|
self.log.debug("printing with template: %s", templfile)
|
|
|
|
self.log.debug("printing with template: %s", templfile)
|
|
|
|
templ = Template(filename=templfile)
|
|
|
|
templ = Template(filename=templfile, strict_undefined=True)
|
|
|
|
htmlfile.write(templ.render_unicode(**kwargs))
|
|
|
|
htmlfile.write(templ.render_unicode(**kwargs))
|
|
|
|
htmlfile.close()
|
|
|
|
htmlfile.close()
|
|
|
|
#.encode('utf-8',
|
|
|
|
#.encode('utf-8',
|
|
|
|