Per stampare la versione cartacea di Gancio

encrypt 288335f563 autoselezione 24 eventi 11 ヶ月 前
static 7311b59893 sistemato asimmetrico per i 24 eventi 11 ヶ月 前
templates 288335f563 autoselezione 24 eventi 11 ヶ月 前
README.md eea3a4253e minor 11 ヶ月 前
app.py 69cd21e4cd aggiunto template base 11 ヶ月 前
requirements.txt 65f92370f2 add requests 11 ヶ月 前

README.md

Istruzioni

git clone https://git.lattuga.net/balotta/gancio-flyers
cd gancio-flyers
python3 -m venv venv
. venv/bin/activate # || venv/bin/activate.fish
pip install -r requirements.txt
flask run

Come aggiungere dei nuovi template

In teoria sto coso supporta più template ma non ho ancora finito di sistemarlo. Se vuoi aggiungerne uno nuovo metti il template in templates/flyers/nometemplate.html e crea la directory static/flyers/nometemplate per i files css.

Come usare i tamplate esistenti

Vai nel file app.py ed alla riga #13 passa, come valore di "template_name", il nome del template che vuoi utilizzare. I template si trovano in /templates/flyers. Ad esempio: template_name = 'simple_white'