ex04

package
v0.0.0-...-d651571 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Copyright (C) 2024 early (LGPL)

Index

Constants

This section is empty.

Variables

View Source
var Page = page.New("ex04", "page.html",
	page.OnLoad(func(data render.Data) error {
		data.Set("message", "Hello, Mast!")
		return nil
	}),
	page.Funcs(template.FuncMap{
		"reverse": func(s string) string {
			out := make([]byte, len(s))
			for i := range (len(s) + 1) / 2 {
				j := len(s) - i - 1
				out[i] = s[j]
				out[j] = s[i]
			}
			return string(out)
		},
	}),
	page.Includes(parts.ExampleNav),
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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