templates

package
v1.53.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 8 Imported by: 1

README

templates

GoDoc

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

Install
import (
	"libs.altipla.consulting/templates"
)
Contributing

You can make pull requests or create issues in GitHub. Any code you send should be formatted using make gofmt.

Running tests

Run the tests:

make test
License

MIT License

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