librelist archives

« back to archive

Typogrify

Typogrify

From:
Joe Esposito
Date:
2011-10-14 @ 19:39
Hi, does anyone know if something like Typogrify exists for Flask?

Thanks,
Joe

Re: [flask] Typogrify

From:
Simon Sapin
Date:
2011-10-14 @ 22:07
Le 14/10/2011 21:39, Joe Esposito a écrit :
> Hi, does anyone know if something like Typogrify exists for Flask?

Hi,

I just looked at the code and it seems that Typogrify is just a set of 
functions that take and return Unicode text:


http://code.google.com/p/typogrify/source/browse/trunk/typogrify/templatetags/typogrify.py

They are automatically registered as Django filters, but you can use 
them outside of Django. I guess registering them as Jinja filters would 
work.

Regards,
-- 
Simon Sapin