Re: [flask] cheetah templating engine?
- From:
- Simon Sapin
- Date:
- 2011-12-03 @ 11:39
Le 02/12/2011 20:47, Matthew Hoopes a écrit :
> Hi guys,
>
> I was wondering if it was possible to use Cheetah templating engine with
> flask? I saw genshi in the snippets
> (http://flask.pocoo.org/snippets/17/) but noticed that someone at the
> bottom said "It'd be nice to use Mako" - so I wasn't sure about
> cheetah... is there a general strategy for using a different templating
> engine in flask?
>
> thanks in advance!
Hi,
You can use Cheetah just like any other library with Flask. (Same for
Mako and Genshi.)
The Flask-Genshi extension provides some integration with Flask but
that’s optional. You could use plain Genshi without Flask-Genshi.
Flask-Genshi’s code is short and easy to read. You can write something
like it (or part of it) for Cheetah if you feel a need for it.
Regards,
--
Simon Sapin