Dependencies

Render the local CSS and JavaScript tags Goshtoso components need: compiled theme CSS, Alpine.js, HTMX, and component runtime helpers.

Full runtime helper

@head.Dependencies()

/assets/styles.css
/assets/js/runtime/alpinejs
/assets/js/runtime/htmx
/assets/js/combobox.js
Usage Example
<head>
    @head.Dependencies()
</head>

Minimal Runtime

Use DependenciesMinimal when the page does not need the Alpine collapse or focus plugins.

DependenciesMinimal

CSS, Alpine core, HTMX, and combobox keyboard navigation only.

Minimal Runtime
<head>
    @head.DependenciesMinimal()
</head>

Asset Mount Contract

Both helpers assume the embedded asset handler is mounted at /assets/ so pages load without a CDN.

Serve bundled assets

http.Handle("/assets/", assets.Handler())
Asset Mount Contract
import "github.com/araihu/goshtoso/assets"

http.Handle("/assets/", assets.Handler())

API Reference

PropTypeDefaultDescription
Dependenciestempl.Component-Renders styles.css, Alpine collapse/focus/core, HTMX, and combobox.js from /assets/.
DependenciesMinimaltempl.Component-Renders styles.css, Alpine core, HTMX, and combobox.js without the collapse/focus plugins.
assets.Handlerhttp.Handler-Serves the embedded runtime bundle expected by the generated tags.