> ## Documentation Index
> Fetch the complete documentation index at: https://docs.evidence.dev/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

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

**variables** `options group`

Variables to pass to the partial, must be variables from frontmatter or hardcoded values.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.