view

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ParseTemplate added in v1.0.0

func ParseTemplate(name string) (*template.Template, error)

ParseTemplate parses layout.html together with the named page template, returning a template set where executing "layout" renders the full page.

func StaticHandler added in v1.5.8

func StaticHandler() http.Handler

StaticHandler returns an http.Handler that serves files from view/static/. Mount it with http.StripPrefix so the handler receives bare file names.

Types

This section is empty.

Jump to

Keyboard shortcuts

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