site

package module
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 8 Imported by: 0

README ¶

tinywasm/site

Project Badges

Site rendering engine for Go (WASM-friendly).

A lightweight rendering layer built on top of tinywasm/dom, designed to generate web pages with minimal overhead. Provides small, efficient primitives for composing views, routing, and rendering UI structures while keeping WebAssembly binaries tiny and dependency-free.

📚 Documentation

  1. Architecture: High-level overview and design goals.
  2. Modules: Routes and modular structure.
  3. Components: UI building blocks and icons.
  4. Routing: Typed routing and path generation.
  5. Access Control: Security and SSR vs SPA logic.
  6. Assets: Bundling and resource management.
  7. Module Creation (ES): Step-by-step guide to creating modules (Spanish).

Documentation ¶

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

func Mount ¶ added in v0.0.5

func Mount(mux *http.ServeMux) error

Mount configures the server handled by site. It initializes assetmin and registers all routes.

func RegisterHandlers ¶

func RegisterHandlers(handlers ...any) error

RegisterHandlers registers all handlers with site and crudp

func SetUserRoles ¶ added in v0.0.16

func SetUserRoles(fn func(data ...any) []byte)

SetUserRoles configures the function to extract user roles from the request context. This is required when using handlers with access control (AllowedRoles).

Types ¶

This section is empty.

Directories ¶

Path Synopsis
example
web command

Jump to

Keyboard shortcuts

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