El martes, 28 de enero de 2014 13:57:38 UTC+1, Alessandro Molina escribió:
>
> You can achieve that by registering a template engine for HAML.
> You can freely extend TG with custom template engines, there are a bunch
> of example around.
>
> tgext.odt is a quite simple example that register a template engine to
> render OpenOffice documents:
> https://github.com/puria/tgext.odt/blob/master/tgextodt/__init__.py#L41
>
Thanks! That helped me a lot.
Finally, the solution was to put this in *app_config.py*:
base_config.use_dotted_templatenames = False
base_config.jinja_extensions.append('hamlish_jinja.HamlishExtension')
Sadly, I cannot use dotted filenames, though, because that only searches
for *.jinja files.
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/groups/opt_out.