Per stampare la versione cartacea di Gancio

encrypt f692715250 sistemato il select del template 1 năm trước cách đây
static fe013b5e28 il template simple po essere bianco po essere nero in base al parametro 1 năm trước cách đây
templates f692715250 sistemato il select del template 1 năm trước cách đây
README.md b8d4d96760 aggiornato readme 1 năm trước cách đây
app.py 326e76bae9 modificato il sistema di gestione dei templates, ora un template è fatto dal template jinja + i parametri, aggiunto autoselect in home 1 năm trước cách đây
requirements.txt 65f92370f2 add requests 1 năm trước cách đây
templates.json 326e76bae9 modificato il sistema di gestione dei templates, ora un template è fatto dal template jinja + i parametri, aggiunto autoselect in home 1 năm trước cách đây

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

Sto coso supporta più template, per template si intendono i file jinja2 (chiamiamoli template base) e dei parametri, l'insieme delle due cose forma un template. Se vuoi aggiungerne uno nuovo metti il template in templates/flyers/nometemplate.html e crea la directory static/flyers/nometemplate per i files css. Poi vai in templates.json e aggiungi il tuo scopiazzando dagli altri.