Custom Templates
GTFS-to-HTML includes a default template for generating HTML timetables in views/default
. It is built using pug.
You can create your own template using the default one as a starting point.
- Copy the
views/default
folder toviews/custom/myagency
. - Modifiy as needed.
- All files within the
/views/custom
folder are .gitignored. - A template must include pug templates called
timetablepage.pug
,timetablepage_full.pug
,overview.pug
, andoverview_full.pug
(but can include any additional template files you'd like).