Javascript emmbeded in HTML python server
-
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.
-
@Dormane I think you should be fine. I'm new to Python, but I've got 17 years of web development under my belt. If the script translates the way I think it does, you shouldn't have any difficulties adding JavaScript into your HTML document.
-
thanks