# HG changeset patch # User Björn Ricks # Date 1411999669 -7200 # Node ID 709edf15f90e93eac653c5f8ad2ba65f15966e03 # Parent 0e40926735e1e852fc2bcad788dd7ca453e2ffac Add a index view to display links to the three functions diff -r 0e40926735e1 -r 709edf15f90e main.py --- a/main.py Mon Sep 29 16:07:25 2014 +0200 +++ b/main.py Mon Sep 29 16:07:49 2014 +0200 @@ -10,7 +10,8 @@ if app.config["DEBUG"]: logging.basicConfig(level=logging.DEBUG) -from odfcast.convert import ConvertView, TemplateConvertView, MergeView +from odfcast.convert import ConvertView, TemplateConvertView, MergeView, \ + TemplateView app.add_url_rule("/convert/", @@ -30,6 +31,10 @@ app.add_url_rule("/merge/", view_func=MergeView.as_view("merge"), ) +app.add_url_rule("/", + view_func=TemplateView.as_view("index", "index.html"), + ) + if __name__ == "__main__": app.run() diff -r 0e40926735e1 -r 709edf15f90e templates/index.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/index.html Mon Sep 29 16:07:49 2014 +0200 @@ -0,0 +1,15 @@ +{% extends 'base.html' %} + +{% block content %} + +{% endblock %}