svelte

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package svelte holds what compiled components need from Go beyond the JavaScript they were compiled from: Go versions of Svelte's hottest server helpers (intrinsics). Svelte's own server runtime is compiled from its source like any other module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Escape

func Escape(v js.Value, s string, attr bool) js.Value

Escape escapes s, whose Value is v: when nothing needs escaping, v comes back as it is, without allocating.

func EscapeHTML

func EscapeHTML(rt *js.Realm) js.Value

EscapeHTML is escape_html from svelte/src/escaping.js, for realm rt:

const str = String(value ?? '');
… escape & and <, and " too when is_attr …

Types

This section is empty.

Jump to

Keyboard shortcuts

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