For the complete documentation index, see llms.txt. This page is also available as Markdown.

Template export

We have a method that allows you to export an entire template including all Jinja HTML and CSS.

Export template

GET /api/v2/sites/:site_id/export_templates/

Each template is associated with a Site ID that is passed to the endpoint.

We generate a structured export as a zip file and return that export as Content-type: application/zip

Included in export

  • Template components (components/)

    • One file per component (i.e. ComponentName/ComponentName.jinja)

  • Theme files

    • CSS styles (styles/globals.css)

    • Header template (layouts/headers/DefaultHeader.jinja)

    • Footer template (layouts/footers/DefaultFooter.jinja)

    • Header code (layouts/HeaderCode.jinja)

    • Footer code (layouts/FooterCode.jinja)

  • Theme modules (modules/)

    • One file per Theme module (i.e. blog-post_detail.jinja)

  • Pages (pages/)

    • All HTML code modules on each page within the Template site organized by Page path and folder structure.

    • Example: pages/about-us.jinja or pages/about-us/meet-the-team.jinja

Last updated