assets

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package assets exposes the embedded vendor JS/CSS (paged.js, KaTeX) and the preview UI files (HTML/CSS/JS) as filesystems. Everything callers need to serve the preview or inject into print HTML lives here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UI

func UI() fs.FS

UI returns a filesystem rooted at the ui directory.

func UIBytes

func UIBytes(name string) ([]byte, error)

UIBytes reads a single file out of the embedded UI tree.

func Vendor

func Vendor() fs.FS

Vendor returns a filesystem rooted at the vendor directory (so paths like "paged.polyfill.min.js" and "katex/katex.min.css" work directly).

func VendorBytes

func VendorBytes(name string) ([]byte, error)

VendorBytes reads a single file out of the embedded vendor tree. Useful when the print pipeline needs to inline the paged.js polyfill into a generated HTML file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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