view

package
v1.6.16 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: GPL-3.0 Imports: 7 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.

func ThemeCSSHandler added in v1.6.16

func ThemeCSSHandler() http.Handler

ThemeCSSHandler serves admin-supplied theme CSS (theme_css_inline + theme_css_file content) with text/css content-type. Serving as an external stylesheet — instead of injecting into a page <style> block — eliminates the </style> breakout vector that turned admin-controlled CSS into XSS.

Types

This section is empty.

Jump to

Keyboard shortcuts

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