renderer

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package renderer generates interactive HTML from processed entries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertANSIToHTML

func ConvertANSIToHTML(input string) string

ConvertANSIToHTML converts ANSI escape sequences to styled HTML.

func ExecuteTemplate

func ExecuteTemplate(tmpl *template.Template, wr io.Writer, data interface{}) error

ExecuteTemplate renders the base template with provided data.

func GenerateHTML

func GenerateHTML(entries []*models.ProcessedEntry, outputFile string, debugMode bool) error

GenerateHTML renders processed entries to an HTML file.

func LoadTemplates

func LoadTemplates(funcMap template.FuncMap) (*template.Template, error)

LoadTemplates loads embedded HTML templates with custom functions.

Types

type BashResultFormatter

type BashResultFormatter struct{}

BashResultFormatter formats Bash command results for display.

func NewBashResultFormatter

func NewBashResultFormatter() *BashResultFormatter

NewBashResultFormatter creates a new bash result formatter

func (*BashResultFormatter) Format

func (f *BashResultFormatter) Format(toolCall interface{}) template.HTML

Format formats a bash tool call result into HTML

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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