htmxplugin

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package htmxplugin provides an HTMX plugin wrapper for ForgeUI's plugin system.

This allows HTMX to be registered as a plugin, enabling other plugins to declare it as a dependency and ensuring proper initialization order.

Basic Usage

registry := plugin.NewRegistry()
registry.Use(htmxplugin.New())

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTMXPlugin

type HTMXPlugin struct {
	*plugin.PluginBase
	// contains filtered or unexported fields
}

HTMXPlugin wraps HTMX functionality as a ForgeUI plugin.

func New

func New(extensions ...string) *HTMXPlugin

New creates a new HTMX plugin.

func (*HTMXPlugin) AlpineComponents

func (h *HTMXPlugin) AlpineComponents() []plugin.AlpineComponent

AlpineComponents returns HTMX Alpine components (none).

func (*HTMXPlugin) Directives

func (h *HTMXPlugin) Directives() []plugin.AlpineDirective

Directives returns HTMX directives (none, as HTMX uses attributes directly).

func (*HTMXPlugin) Init

func (h *HTMXPlugin) Init(ctx context.Context, registry *plugin.Registry) error

Init initializes the HTMX plugin.

func (*HTMXPlugin) Magics

func (h *HTMXPlugin) Magics() []plugin.AlpineMagic

Magics returns HTMX magic properties (none).

func (*HTMXPlugin) Scripts

func (h *HTMXPlugin) Scripts() []plugin.Script

Scripts returns HTMX library and extension scripts.

func (*HTMXPlugin) Shutdown

func (h *HTMXPlugin) Shutdown(ctx context.Context) error

Shutdown cleanly shuts down the plugin.

func (*HTMXPlugin) Stores

func (h *HTMXPlugin) Stores() []plugin.AlpineStore

Stores returns HTMX stores (none needed).

Jump to

Keyboard shortcuts

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