Partials

Explicit Partial Tags

Component notation is the normal way to render partials, but explicit partial tags are also supported.

Static Names#

These two calls point at the same kind of partial:

php
<Card />
php
{{ partial:card }}

You can also use src:

php
{{ partial src="card" }}

Dynamic Names#

Use explicit partial tags when the partial name needs to come from a value:

php
{{ partial src="sets.home.{set}" }}

Dynamic partial names are useful for flexible content sets, where each set can render a matching partial.

Wrapped Tags#

Explicit partial tags can also receive slot content:

php
{{ partial:card }}  <p>{{ excerpt }}</p>{{ /partial:card }}

Use component notation for normal static partials. Use explicit partial tags when you need dynamic names or low-level control.