Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FS embed.FS
Functions ¶
func ParseTemplate ¶ added in v1.0.0
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
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
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.
Click to show internal directories.
Click to hide internal directories.