Feb-10-2023, 08:26 AM
(This post was last modified: Feb-10-2023, 08:26 AM by Gribouillis.)
(Feb-10-2023, 07:06 AM)DPaul Wrote: We are NOT talking about an internet environment, just a desktop happening.You could start a Flask application serving html files on the local host for example (or Bottle, or whatever).
from bottle import route, run, template @route('/hello/<name>') def index(name): return template('<b>Hello {{name}}</b>!', name=name) run(host='localhost', port=8080)or
from flask import Flask app = Flask(__name__) @app.route("/") def hello_world(): return "<p>Hello, World!</p>"