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) CustomTemplateFunctions ¶
Source Files
¶
- functions.go
- gemtext.go
Click to show internal directories.
Click to hide internal directories.