templates

package
v1.7.6-0...-a17e0fe Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package templates generates and stores HTML templates

Index

Constants

This section is empty.

Variables

View Source
var Resources = Map{}

Resources conatains all available templates

Functions

func Compile

func Compile() error

Compile reads template HTML from disk, injects dynamic variables, hashes and stores them

Types

type Map

type Map map[string]Store

Map stores all available templates

type Store

type Store struct {
	HTML []byte
	Hash string
}

Store stores the compiled HTML template and the corresponding truncated MD5 hash of said template

Jump to

Keyboard shortcuts

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