Skip to content
HomePagesHomePages template kit
Menu

Add a second template

Add another template to the workspace.

Add another template to the workspace.

Terminal window
template-kit new <name>

new creates templates/<name>/ as a working starter template — the same starter shape a fresh workspace ships (a text slot, an image slot, a fact-bound slot, an option, fixtures, a fill spec, a components/ folder, a "use client" island, theme.ts/theme.css, manifest.json) — and it already passes check as-is. Edit its sections from there.

A template is a plain folder under templates/. Adding one does not duplicate anything: every template in the workspace shares the same kit version, the same root package.json/lockfile, and the same tsconfig.json/ESLint config. There is nothing per-template to configure beyond the folder itself.

new refuses to overwrite an existing templates/<name>/ folder.

Terminal window
template-kit new <name>
template-kit check <name>

Verify with the author loop — a freshly created template is check-clean before you change a line.

  • Adding templates and sections — the full command, including new-section for adding a section within a template.
  • Check — the gate every template (new or edited) must pass.