Skip to content Skip to footer navigation
🏰 Statamic Summit 2027 Feb 16–19 Talks, workshops, and three nights in a German castle. Get Tickets

Partial Modifier

Inject a variable's data into a partial and render it without any page scopes whatsoever. This is really just syntactical sugar, but it is delicious.

data:
title: Bubble Guppies
content: Science died a little bit today.
{{# resources/partials/demo.html #}}
<h1>{{ title }}</h1>
{{ content | markdown }}
{{# Template markup #}}
{{ data | partial('demo') }}

This modifier reads from resources/partials/. For partials in your normal resources/views/ directory, use the partial tag.

<h1>Bubble Guppies</h1>
<p>Science died a little bit today.</p>