html

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const FontFileName = "Web437_ToshibaSat_8x14.woff"

Variables

This section is empty.

Functions

func ExportHTML

func ExportHTML(neotexContent string) (string, error)

ExportHTML generates a standalone HTML document embedding neotex content and a JS decoder.

Types

type PackFiles

type PackFiles struct {
	HTML     string
	CSS      string
	JS       string
	FontName string
	FontData []byte
}

func ExportHTMLPack

func ExportHTMLPack(neotexContent string) (PackFiles, error)

ExportHTMLPack generates separate HTML, CSS, JS and font bytes.

type TemplateData

type TemplateData struct {
	Neotex      string
	FontDataURI template.URL
	CSS         template.CSS
	JS          template.JS
	OptionsBar  template.HTML
}

Jump to

Keyboard shortcuts

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