Skip to content

Document authoring of custom Stencil templates#162

Merged
BarredEwe merged 1 commit into
mainfrom
docs/templates-stencil-authoring
Jun 7, 2026
Merged

Document authoring of custom Stencil templates#162
BarredEwe merged 1 commit into
mainfrom
docs/templates-stencil-authoring

Conversation

@BarredEwe

Copy link
Copy Markdown
Owner

Resolves #157.

Adds Documentation/Templates.md describing how to author custom Stencil templates for Prefire, including:

  • Configuration via template_file_path for both tests and playbook plugins
  • Available context: argument.*, types.*, macroModel.* with all keys and their types
  • Filters reference (only those used by the default templates)
  • Links to the built-in EmbeddedTemplates.previewTests / previewModels source as starting points
  • A worked example with a minimal custom template and the generated Swift
  • Caveats (required imports, {PREVIEW_FILE_NAME} placeholder, isScreen comparison, cache invalidation)

Also moves Configuration.md and Installation.md into Documentation/ so all non-README docs live in one place, and links the new templates guide from README.md and Configuration.md.

Adds Documentation/Templates.md covering configuration, available
context (argument, types, macroModel), filters, default templates,
a worked example, and caveats. Resolves #157.

Also moves Configuration.md and Installation.md into Documentation/
so all non-README docs live in one place, and links README and
Configuration.md to the new templates guide.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: da8d179c34

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Documentation/Templates.md
Comment thread README.md
@BarredEwe BarredEwe merged commit 74e532e into main Jun 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add documentation for authoring custom Stencil templates

1 participant