1. Steve Losh
  2. garter


garter / docs / content / index.markdown

<h1 id="splash-logo">Garter</h1>

<div id="logo"> <a href=""><img src="http://sjl.bitbucket.org/garter/media/images/logo.png"/></a> </div>

Garter is a collection of small utilities that makes creating webapps with Flask easier.

Flask is a wonderful little web framework, but sometimes you need a garter to get your webapp working in the big old speakeasy that is the Internet.


Use pip to install Garter:

pip install -e hg+http://bitbucket.org/sjl/garter/#egg=garter

Prefer git to Mercurial?

pip install -e git+http://github.com/sjl/garter.git#egg=garter

You can install it without pip, but why would you want to?

hg clone http://bitbucket.org/sjl/garter/
cd garter
python setup.py install


Garter contains a bunch of useful little functions. Use the ones you need, ignore the rest.

CSRF Protection

LessCSS Support

URL Convenience Functions


Want to contribute your own useful functions? Fork the Mercurial repository or git repository and send a pull request.

Make sure you update the documentation to mention your changes!