From 8cad260eeea9b11c1b04e0627cb85d767c7274d0 Mon Sep 17 00:00:00 2001 From: gio Date: Wed, 8 Feb 2017 22:26:41 +0100 Subject: [PATCH] studio --- server.py | 8 ++++---- views/map_template.tpl | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 views/map_template.tpl diff --git a/server.py b/server.py index 76151f7..dd36e0c 100644 --- a/server.py +++ b/server.py @@ -4,12 +4,12 @@ from bottle import route, run,template @route('/myapp') @route('/myapp/') def myApp(): - return 'Hello Sandeep .Bottle Framework demonstration route.' + return template('map_template', item=item) -@route('/myapp/') -def myName(name): - return template('Hello {{name}}. Bottle Framework demonstration route with template string.', name=name) +@route('/myapp/') +def myName(item): + return template('map_template', item=item) @route('/myapp/favourite/') diff --git a/views/map_template.tpl b/views/map_template.tpl new file mode 100644 index 0000000..c5c9069 --- /dev/null +++ b/views/map_template.tpl @@ -0,0 +1,33 @@ + + + + Quick Start - Leaflet + + + + + + + + + + + +
+ + + \ No newline at end of file