Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TailwindHelper ¶
type TailwindHelper struct {
Runtime string // runtime.GOOS
Arch string // runtime.GOARCH
Version string // default "v3.4.14"
ConfigOverride string // from gothic-config.json tailwindBinary field
}
func DefaultTailwindHelper ¶
func DefaultTailwindHelper() TailwindHelper
DefaultTailwindHelper creates a TailwindHelper using the current runtime's OS and architecture.
func NewTailwindHelper ¶
func NewTailwindHelper(goos, goarch string) TailwindHelper
func (*TailwindHelper) Build ¶
func (h *TailwindHelper) Build() error
Build runs the Tailwind CSS build (one-shot, minified).
func (*TailwindHelper) EnsureBinary ¶
func (h *TailwindHelper) EnsureBinary() (string, error)
EnsureBinary resolves the Tailwind binary path. Resolution order: 1. ConfigOverride if set (returns error if file doesn't exist) 2. Cached binary in OS cache directory 3. Download from GitHub releases
func (*TailwindHelper) WatchStart ¶
func (h *TailwindHelper) WatchStart() (*exec.Cmd, error)
WatchStart starts the Tailwind CSS watcher (non-blocking).
type TemplHelper ¶
type TemplHelper struct {
}
func NewTemplHelper ¶
func NewTemplHelper() TemplHelper
func (*TemplHelper) Render ¶
func (t *TemplHelper) Render() error
Render runs `templ generate`, but skips files whose contents are unchanged since the last successful run (tracked via .gothicCli/templ-cache.json).
Behavior:
- Scans the working directory for .templ files.
- If every file is cache-hit (and the matching _templ.go exists), it returns without invoking templ at all.
- Otherwise it runs templ per dirty file using the -f flag. If any per-file run fails (e.g. unsupported by the installed templ version), it falls back to a full-project generation.
- On success, updates and persists the cache.
Click to show internal directories.
Click to hide internal directories.