Switch branches/tags
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
static
README.md
requirements.txt
server.py
template.html

README.md

Python Magery Example

This demo is a small Flask server that keeps a list of comments in memory. The comments are rendered using the Magery template template.html, and can be updated via a HTML form.

On the client-side, JavaScript event handlers are added in static/app.js and used to make updates via AJAX instead. The page is then dynamically updated using the same template as the server.

The application works with or without JavaScript.

To run the example server.py, you'll need to install Flask:

pip install Flask