functions

package
v0.0.0-...-76d8b13 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package functions makes available extra functions within templates being processed by the `http.handlers.templates` directive.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gemtext

type Gemtext struct {

	// If given then any `gemini://` URLs encountered as links within the
	// document will be appended to this URL, having their `gemini://` scheme
	// stripped off first.
	//
	// e.g. if `gateway_url` is `https://some.gateway/x/` then the following
	// line:
	//
	//	=> gemini://geminiprotocol.net Check it out!
	//
	// becomes
	//
	//	<a href="https://some.gateway/x/geminiprotocol.net">Check it out!</a>
	GatewayURL string `json:"gateway_url,omitempty"`
}

func (Gemtext) CaddyModule

func (Gemtext) CaddyModule() caddy.ModuleInfo

func (*Gemtext) CustomTemplateFunctions

func (f *Gemtext) CustomTemplateFunctions() template.FuncMap

func (*Gemtext) UnmarshalCaddyfile

func (g *Gemtext) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile implements caddyfile.Unmarshaler.

Jump to

Keyboard shortcuts

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