Modifier: partial


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.
<!-- /site/themes/<your_theme>/partials/demo.html -->
<h1>{{ title }}</h1>
{{ content | markdown }}

<!-- Template Markup -->
{{ data | partial:demo }}
<h1>Bubble Guppies</h1>
<p>Science died a little bit today.</p>

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on March 31, 2016