shared

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLanguage

func GetLanguage(r *http.Request) string

GetLanguage returns the language query parameter.

func LoadPage

func LoadPage(r *http.Request, path, language string) (*cms.Content, error)

LoadPage loads a page for the given path and parses it into a cms.Content object.

func SavePage

func SavePage(page *cms.Content, path string) error

SavePage saves a page to the given path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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