Garter

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.

Installing

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

Using

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

CSRF Protection

LessCSS Support

URL Convenience Functions

Contributing

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!