render

package
v0.9.18 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(c *fiber.Ctx) error

Render renders the template that corresponds to request path

func Setup

func Setup(conf *cfg.Config) *html.Engine

func SetupCaching added in v0.9.13

func SetupCaching(conf *cfg.Config) *redis.Storage

func SetupTemplatedPages added in v0.9.13

func SetupTemplatedPages(
	defaultLang string,
	app *fiber.App,
	log *zerolog.Logger,
	cache *redis.Storage,
)

func WatchFiles added in v0.9.13

func WatchFiles(ctx context.Context, staticDir string, log *zerolog.Logger, cache *redis.Storage) error

Types

type HTMLPage added in v0.9.0

type HTMLPage struct {
	Name string `json:"name"`
	Data []byte `json:"data"`
}

func MarkdownToHTML added in v0.9.0

func MarkdownToHTML(path string) (page *HTMLPage, err error)

Jump to

Keyboard shortcuts

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