Skip to content
Esc
navigateopen⌘Jpreview
On this page

template-definition-directive-malformed

Reports a malformed, inline, or unsupported presswork Template Directive.

← All Rules

What it does

Reports a presswork: comment in a Template that is not a supported standalone prompt or optional boundary with a lower-case identifier.

Why it matters

Presswork must parse Template Directives unambiguously before it can validate completed documents or create Document Drafts.

Examples

Non-passing

# {{title}}

<!-- presswork:execute now -->

Passing

# {{title}}

<!-- presswork:prompt-start summary -->

{{summary}}
<!-- presswork:prompt-end summary -->

When it applies

This Rule belongs to the configurable document-types group. It evaluates repository Templates when Presswork loads their Document Type definitions.

References

See Presswork Configuration for Templates and src/template.ts for supported directives.