diff --git a/maps.html b/maps.html new file mode 100644 index 0000000..4a321c8 --- /dev/null +++ b/maps.html @@ -0,0 +1,41 @@ + + + + + Quick Start - Leaflet + + + + + + + + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/server.py b/server.py new file mode 100644 index 0000000..76151f7 --- /dev/null +++ b/server.py @@ -0,0 +1,20 @@ +from bottle import route, run,template + +@route('/') +@route('/myapp') +@route('/myapp/') +def myApp(): + return 'Hello Sandeep .Bottle Framework demonstration route.' + + +@route('/myapp/') +def myName(name): + return template('Hello {{name}}. Bottle Framework demonstration route with template string.', name=name) + + +@route('/myapp/favourite/') +@route('/myapp/favourite/') +def favourite(item): + return template('favourite_template', item=item) + +run(host='localhost', port=9093) \ No newline at end of file diff --git a/view/favourite_template.tpl b/view/favourite_template.tpl new file mode 100644 index 0000000..aabfe60 --- /dev/null +++ b/view/favourite_template.tpl @@ -0,0 +1,46 @@ + + + + + Tutorialsavvy.com : Bottle framework template demo + + + + + +

Your Favourite {{item}} are :

+ + %if 'fruit'== item: +
    +
  • Orange
  • +
  • Apple
  • +
  • Mango
  • +
  • Water Melon
  • +
  • Grapes
  • +
+ %elif 'flower' == item: +
    +
  • Rose
  • +
  • Jasmine
  • +
  • Lotus
  • +
  • Tulip
  • +
  • Lily
  • +
+ %else : +

No Fruit or Flower catagory is Selected

+ + + \ No newline at end of file