Skip to main content

Example

{% partial file="my_partial" /%}

Passing Variables from Frontmatter

{% partial file="my_partial" variables={
	my_category=$category
} /%}

Passing Hardcoded Values

{% partial file="my_partial" variables={
	my_category="Home"
	sales_threshold=10000
} /%}

Attributes

file
String
required
Path to the partial to render, including the file name
variables
Variables to pass to the partial, must be variables from frontmatter or hardcoded values.Example:
variables={
}
I