3 ms·
It might not be the simplest but it was the first I learned so it's simple to me. Flask with jinja, then you just do {% extends layout.html %} etc. It might be
by FergusArgyll 3y ago
It might not be the simplest but it was the first I learned so it's simple to me.
Flask with jinja, then you just do {% extends layout.html %} etc. It might be overkill but it's not that hard
- SOLAR_FIELDS 3y agoHow many lines of Python does that end up being? Seems almost reasonable that this could fit in just a couple files
- FergusArgyll 3y agotechnically: from flask import Flask, render_template app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') then a templates/ folder to keep layout.html, index.html etc. (and a static folder to keep js & css if you want)