assets

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package assets embeds the livetemplate client browser bundle (JS + CSS) and the JetBrains Mono webfont so prereview ships as a self-contained binary with no CDN dependency (it is reviewed over Tailscale/devbox, often offline).

The files in client/ are populated by `make sync-client`, which copies them from ../../../client/{dist/livetemplate-client.browser.js, livetemplate.css}. They are gitignored — fresh clones must run `make sync-client` before `go build`.

fonts/ holds the static Regular (400) and Bold (700) JetBrains Mono woff2 (SIL OFL 1.1, see fonts/OFL.txt) — prose needs only those two weights; other weights/italics synthesize. These ARE committed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientCSS

func ClientCSS() []byte

ClientCSS returns the embedded livetemplate shared stylesheet.

func ClientJS

func ClientJS() []byte

ClientJS returns the embedded livetemplate client browser bundle.

func FontBold added in v0.0.4

func FontBold() []byte

FontBold returns the embedded JetBrains Mono Bold (700) woff2.

func FontRegular added in v0.0.4

func FontRegular() []byte

FontRegular returns the embedded JetBrains Mono Regular (400) woff2.

Types

This section is empty.

Jump to

Keyboard shortcuts

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