> For the complete documentation index, see [llms.txt](https://api-docs.devhub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.devhub.com/advanced/template-export.md).

# 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 <a href="#included-in-export" id="included-in-export"></a>

* 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`
