templ-syntax

Installation
SKILL.md

Templ Syntax

Use this skill with progressive disclosure: start at Level 1, then read deeper sections only when needed.

Level 1: Fast Path

Use this skill when you need to write or fix .templ syntax.

  1. Define a component with typed params.
  2. Render values with { expr }.
  3. Compose components with @OtherComponent(...).
  4. Use Go control flow (if, for, switch) directly in markup.
  5. Keep business logic in Go helpers, not inline in templates.
package components
Related skills
Installs
4
Repository
xe/skills
GitHub Stars
5
First Seen
Mar 31, 2026