For hamlish-jinja, it looks like you can call convert_source() if you ever want to migrate back to pure jinja.
There's a similar project here: https://github.com/p/shpaml-jinja It also works as a preprocessor, using shpaml (which is similar to haml) and jinja-specific extensions. You call it like this: import aml_jinja jinja_template_text = aml_jinja.convert_text(aml_template_text) > >From: Peter Hoffmann <[email protected]> >To: [email protected] >Sent: Sat, December 25, 2010 6:03:54 AM >Subject: compile hamlish-jinja templates to pure jinja templates > >Hi, > > >I've been searching for a python alternative to haml and found >hamlish-jinja[1], >which looks nice and works as a jinja preprocessor. > > >Is there a way to compile the hamlish-jinja templates to pure jinja templates >(I >would like to have a migration path if i should decide to dump hamlish in the >future and continue to work with pure jinja templates)? > > >-- Peter > > >[1] https://github.com/Pitmairen/hamlish-jinja -- >You received this message because you are subscribed to the Google Groups >"pocoo-libs" group. >To post to this group, send email to [email protected]. >To unsubscribe from this group, send email to >[email protected]. >For more options, visit this group at >http://groups.google.com/group/pocoo-libs?hl=en. > -- You received this message because you are subscribed to the Google Groups "pocoo-libs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pocoo-libs?hl=en.
