diff --git a/demo/moulinrouge/__init__.py b/demo/moulinrouge/__init__.py index 8f1d3a0..0f29553 100644 --- a/demo/moulinrouge/__init__.py +++ b/demo/moulinrouge/__init__.py @@ -16,7 +16,7 @@ # # You should have received a copy of the GNU Lesser General Public License # along with pygal. If not, see . -from flask import Flask, render_template +from flask import Flask, render_template, Response import pygal from pygal.config import Config from pygal.util import cut @@ -94,6 +94,13 @@ def create_app(): graph.add(title, values) return graph.render_response() + @app.route("/sparkline/