handler

package
Version: v0.0.0-...-cbf21e1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: BSD-3-Clause, BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package handler is the highest level module of the macro package which makes use the rest of the macro package, it is mainly used, internally, by the router package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanMakeHandler

func CanMakeHandler(tmpl macro.Template) (needsMacroHandler bool)

CanMakeHandler reports whether a macro template needs a special macro's evaluator handler to be validated before procceed to the next handler(s). If the template does not contain any dynamic attributes and a special handler is NOT required then it returns false.

func MakeFilter

func MakeFilter(tmpl macro.Template) context.Filter

MakeFilter returns a Filter which reports whether a specific macro template and its parameters pass the serve-time validation.

func MakeHandler

func MakeHandler(tmpl macro.Template) context.Handler

MakeHandler creates and returns a handler from a macro template, the handler evaluates each of the parameters if necessary at all. If the template does not contain any dynamic attributes and a special handler is NOT required then it returns a nil handler.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL