File: flask.rst

package info (click to toggle)
folium 0.12.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 712 kB
  • sloc: python: 3,602; makefile: 134; sh: 25; javascript: 13
file content (9 lines) | stat: -rw-r--r-- 251 bytes parent folder | download
1
2
3
4
5
6
7
8
9
Using folium with flask
=======================

A very common use case is to use folium with in a flask app.
The trick is to return folium's HTML representation.
Here is an example on how to do that:


.. literalinclude:: ../examples/flask_example.py