All rules

Sheath rule

statamic-antlers-region-syntax

Embedded Antlers inside Blade must use valid Statamic syntax.
Package
Statamic
Category
Blade
Default severity
error by default
Auto-fix
Manual fix

#Why

Statamic parses the contents of @antlers ... @endantlers as Antlers rather than Blade. Invalid expressions fail when the view is compiled or rendered.

#Examples

#Bad

{{-- The if tag has no condition or closing pair. --}}
@antlers
{{ if }}
@endantlers

#Good

{{-- The conditional has an expression and a matching close tag. --}}
@antlers
{{ if featured }}
<p>{{ title }}</p>
{{ /if }}
@endantlers

#Notes

Syntax follows the installed Statamic version without executing the region. Only closed, non-nested regions are checked, and diagnostics point to the original Blade source.

Core Blade and HTML rules skip embedded Antlers content, so Antlers expressions and fragments do not produce unrelated Blade or HTML findings.

#See Also

Related documentation covers structural markers and plugin behavior: