templates

package
v1.55.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: MIT Imports: 8 Imported by: 1

Documentation

Overview

Package templates wraps the stdlib with helper functions for html/template to assist with common actions, i18n or assets versioning.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(folders ...string) (*template.Template, error)

Load receives a list of globs and load every template that matches those folders. All folders must have at least one template or it will fail the loading.

func LoadFromReader added in v1.28.0

func LoadFromReader(r io.Reader) (*template.Template, error)

LoadFromReader loads a template from a reader.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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