Template packs
A template pack is a directory of Jinja2 templates, CSS, JS, and static assets bundled together and uploaded to ScaiCMS. Each site has one active pack; switching themes is one admin click.
Pack structure#
text
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
manifest.json#
The manifest names the templates and declares custom block types:
json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | |
The admin's BlocksEditor reads block_types at runtime — no frontend
code change needed when a pack adds a new section.
Upload flow#
bash
1 2 3 4 5 6 7 | |
The backend uploads the pack to S3 and registers each template. Delivery fetches templates from S3 on demand and caches them.
See Tutorials → First template pack for an end-to-end walkthrough.