template

package
v0.46.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAttributes

func ParseAttributes(attrString string) map[string]interface{}

Types

type ConditionalBranch

type ConditionalBranch struct {
	Type      string
	Condition string
	Tag       string
	Attrs     string
	Content   string
	Start     int
	End       int
}

type Engine

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

func NewEngine

func NewEngine(ctx *executor.Context) *Engine

func (*Engine) GetContextForSlots

func (e *Engine) GetContextForSlots() *executor.Context

func (*Engine) Render

func (e *Engine) Render(template string, opts *RenderOptions) (string, error)

func (*Engine) SetParentContext

func (e *Engine) SetParentContext(parentCtx *executor.Context)

type RenderOptions

type RenderOptions struct {
	Props     map[string]interface{}
	Slots     map[string]string
	ParentCtx *executor.Context
}

Jump to

Keyboard shortcuts

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