ar_templ

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratorRun

func GeneratorRun(inputDir, outputFile, packageName string)

func SimpleRenderer

func SimpleRenderer(path string, comp templ.Component) (string, ar.Handler)

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

type Route

type Route struct {
	Path          string
	ComponentName string
}

Route represents a single route with its path and component name.

type TemplateData

type TemplateData struct {
	PackageName       string
	Routes            []Route
	ModulePath        string
	RelativeInputPath string
	ImportAlias       string
}

TemplateData holds the data for the Go template.

Jump to

Keyboard shortcuts

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