All rules

Sheath rule

statamic-tag-exists

Statamic Blade component tags must use a registered tag handle.
Package
Statamic
Category
Blade
Default severity
error by default
Auto-fix
Manual fix

#Why

An unregistered <s:...> or <statamic:...> tag cannot be dispatched by Statamic. The rule catches misspellings and removed add-on tags before the view is rendered.

#Examples

#Bad

<s:a-tag-that-probably-does-not-exist from="articles" />

#Good

{{-- "collection" is the registered handle. --}}
<s:collection from="articles" />

#Notes

Registered add-on tags, aliases, and application registry replacements are accepted. Handle matching is case-sensitive.

The reserved slot and no_results handles are valid only in their supported parent contexts.

#See Also

Related rules validate methods and equivalent invocation surfaces: