Per stampare la versione cartacea di Gancio
Find a file
2025-07-16 23:00:44 +02:00
static FIX altezza header 2025-07-16 22:33:54 +02:00
templates Merge pull request 'Fix altezza eventi' (#12) from boyska/gancio-flyers:fix-altezza-eventi into master 2025-07-16 23:00:44 +02:00
.gitignore gitignore 2025-05-01 13:18:19 +02:00
app.py debug: allow overriding requests 2025-07-16 22:33:54 +02:00
build.sh pulizie varie 2025-07-09 01:32:40 +02:00
CHANGELOG.md pulizie varie 2025-07-09 01:32:40 +02:00
config.yaml set timezone per-instance 2025-07-11 01:53:25 +02:00
README.md readme update 2025-07-09 00:55:59 +02:00
requirements.txt add pyyaml 2025-04-15 11:30:44 +02:00

gancio-flyers

aka stampabalotta

Istruzioni per buildare in locale

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 --debug

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 file CSS. Poi vai in config.yaml, sezione templates e aggiungi il tuo, scopiazzando dagli altri.

Media

I media si trovano nella cartella /static e sono aggiunti con la seguente sintassi (es: favicon): {{ url_for('static', filename='favicon.ico') }}