Sheath rule
statamic-tag-exists
Statamic Blade component tags must use a registered tag handle.
#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:
- statamic-tag-method-exists: Validate the requested component method
- statamic-fluent-tag-exists: Validate executed fluent tag calls
- statamic-tags-directive-tag-exists: Validate
@tagsdefinitions