> For the complete documentation index, see [llms.txt](https://documentation.siteglide.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.siteglide.com/cms/pages/page-templates/page-templates-with-cli.md).

# Page Templates with Siteglide CLI

Templates must be stored within the following file path of your project: `marketplace_builder/views/layouts/templates/` and must be `.liquid` file type.

{% content-ref url="/pages/gzlOHVvex5qJeoWPSKtB" %}
[File Structure](https://documentation.siteglide.com/cms/pages/pages-and-page-templates-file-structure.md)
{% endcontent-ref %}

## YAML Page Template Settings

This is an example Template generated by Siteglide. Below, we'll list available YML parameters, and body content.

```yaml
---
metadata:  
  id: 1
  name: Main
  type: page
  file_type: template
  last_edit: 1553195327594
  use_design_system: true
  physical_file_path: views/layouts/templates/1.liquid
---

{% include 'modules/siteglide_system/siteglide_head' -%}
<!-- TEMPLATE UPPER CONTENT HERE-->
{{ content_for_layout }}
<!--TEMPLATE LOWER CONTENT HERE-->

```

### Parameters

`metadata`

* `id` - Used by UI to reference Templates. Must be unique (required)
* `name` - Template name shown in UI (required)
* `type` - Used to define where the Template shows in UI. Either page or email (required)
* `file_type` - Set as 'template' (required)
* `last_edit` - timestamp of last edit - shown in UI
* `use_design_system` - true/false - used to determine whether or not we automatically add assets from the Siteglide Design System Module.
* `physical_file_path` - Files should be stored in a location relative to their ID. If your ID is 1, then the physical\_file\_path would be views/layouts/templates/1.liquid

## Hidden Liquid

This Liquid is not displayed as editable code in the Siteglide Admin and is automatically added. However, if you're using CLI, you should make sure to include it manually if missing.

### Constants

Constants makes certain variables available in the Page and passes others up to the Page Template e.g. SEO. It should sit at the very top of most Page Templates.

```liquid
{% include 'modules/siteglide_system/constants' -%}
```
