Re: [flask] Flask-Brevé
- From:
- Dag Odenhall
- Date:
- 2010-09-14 @ 17:05
On Tue, 2010-09-14 at 15:29 +0200, Daniel G. Gerber wrote:
> Hello Flask community!
>
> A loader for Brevé "templates" is available at
> http://github.com/dgerber/Flask-Breve .
>
> Thanks to Flask-Genshi for providing a model.
Cool ☺; I pushed some old commits, of specific interest to you is the
move from genshi_instance to extensions['genshi'], diff:
http://bitbucket.org/dag/flask-genshi/changeset/1ebbaeca97bd#chg-flaskext/genshi.py
(The FAT16 filesystem of a pendrive messed up that commit so excuse all
the junk.)
Some features you might like to implement:
- Access Jinja filters and tests; specifically some extensions add
filters for things such as Creole.
- Support the factory pattern / ability to avoid circular imports, by
moving the initialization of the app with the extension to an init_app
method, example diff:
http://bitbucket.org/dag/flask-genshi/changeset/f33a4f6ae35f
- Render a string as a template; render a template object - bypassing
template loading.
- Signals. I need to implement that for Genshi as well.
It would also be awesome if you would write some nice documentation and
tests, then you might also get the extension approved for automated
testing before Flask releases.
>
>
> Daniel
>
Re: [flask] Flask-Brevé
- From:
- Jean-Philippe Serafin
- Date:
- 2010-09-14 @ 13:59
Le mardi 14 septembre 2010 à 15:29 +0200, Daniel G. Gerber a écrit :
> Hello Flask community!
>
> A loader for Brevé "templates" is available at
> http://github.com/dgerber/Flask-Breve .
>
> Thanks to Flask-Genshi for providing a model.
>
Thanks! Brevé looks nice!
>
> Daniel
>