> ## Documentation Index
> Fetch the complete documentation index at: https://docs.evidence.studio/llms.txt
> Use this file to discover all available pages before exploring further.

# Partial

> Use a reusable partial to render a section of content. Create a partial in the page sidebar of your project.

```liquid theme={null}
{% partial file="my_partial" /%}
```

## Examples

### Basic Usage

```liquid theme={null}
{% partial file="my_partial" /%}
```

### Passing Variables from Frontmatter

```liquid theme={null}
{% partial file="my_partial" variables={
	my_category=$category
} /%}
```

### Passing Hardcoded Values

```liquid theme={null}
{% partial file="my_partial" variables={
	my_category="Home"
	sales_threshold=10000
} /%}
```

## Attributes

<ResponseField name="file" type="string" required>
  Path to the partial to render. Leading slash means "from the project root" (recommended, e.g. `/partials/header`); without slash, the path resolves relative to the referencing page's directory.
</ResponseField>

<ResponseField name="variables" type="options group">
  Variables to pass to the partial, must be variables from frontmatter or hardcoded values.
</ResponseField>
