Skip to content

feat(packages/templates,packages/cli): complete draft placeholder support #148

Description

@zrosenbauer

Summary

Complete the remaining draft-template placeholder workflow after #152 introduced declared variables, built-in substitution, unfilled-marker reporting, and published-document checks.

Already shipped in #152

  • Built-ins: title, slug, date, and filename.
  • Declared template variables and repeatable --var id=value input.
  • Interactive prompts and an unfilled-marker checklist.
  • ciderpress check / build --check failures for markers left in published documents.

Remaining scope

  • Add an author built-in sourced from Git configuration with a documented fallback when unavailable.
  • Add ciderpress draft --clean to remove template guidance comments from generated documents.
  • Define which HTML comments are guidance and preserve comments that are part of the document's intended output.

Acceptance criteria

  • {{author}} resolves deterministically or remains visible with an actionable message.
  • --clean removes only recognized guidance comments.
  • Default draft behavior remains backward compatible.
  • Documentation and tests cover Git configuration absence, clean/no-clean output, and preserved comments.

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions