templates

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package templates embeds the text/template sources tsuba renders when scaffolding a new skill, plugin, hook, or agent. Keeping them in a dedicated package makes the template set a single, testable artifact and avoids scattering the scaffold logic across sibling packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FS

func FS() fs.FS

FS returns a read-only filesystem rooted at the `tmpl/` directory. Callers do not need to know the embed prefix.

func Read

func Read(path string) ([]byte, error)

Read returns the bytes of a single template file relative to tmpl/. Returns the fs.ErrNotExist from io/fs on a missing path.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL