Skip to content
Esc
navigateopen⌘Jpreview
On this page

template-definition-placeholder-malformed

Reports a Template placeholder that is not a lower-case identifier in double braces.

← All Rules

What it does

Reports malformed placeholder delimiters or a placeholder that does not use the {{lower-case-identifier}} form.

Why it matters

Presswork must identify Template fields exactly before it can validate configuration or render a Document Draft.

Examples

Non-passing

# {{Title}}

{{summary
}}

Passing

# {{title}}

{{summary}}

When it applies

This Rule belongs to the configurable document-types group. It validates placeholders in the Template definition, not unresolved placeholders left in completed documents.

References

See Presswork Configuration for Template fields and src/template.ts for placeholder parsing.