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