Dormane
Feb 27, 2015 - 12:44
Ok, this is a fairly dumb question, and I am new to webpage development, but it is easy enough to use HTML with Bottle, such as in...
from bottle import route, run
@route('/hello')
def hello():
return """<P>Hello World!</P>""" #Not an entire HTML form, but still valid
run(host='localhost', port=8080, debug=True)
But will embedding the javascript into the HTML actually work? I don't think its a completely foolish question as javascript is interpreted along with the HTML by the browser.