==================== Application Examples ==================== Here are a couple of examples of how to use Formular with different web frameworks. .. note:: These examples require Formular 0.2. .. _werkzeug-example: Werkzeug_ --------- Most of this code is unnecessary, however i wanted to write an example which is as close to a real world application as necessary. As you can see this application uses sessions and passes the path to the form. This allows Formular to protect the form against CSRF attacks, try sending the data multiple times to the server. .. literalinclude:: werkzeug_example.py :linenos: .. _bottle-example: Bottle_ ------- As bottle has no included session support this application does not use one and is therefore vulnerable for CSRF attacks. .. literalinclude:: bottle_example.py :linenos: