engines

package
v0.0.0-...-10ca6cc Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2014 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Amber = AmberEngine{}
View Source
var Html = html{}
View Source
var Mustache = MustacheEngine{}

Functions

This section is empty.

Types

type AmberEngine

type AmberEngine struct{}

func (AmberEngine) CompileFile

func (a AmberEngine) CompileFile(filepath string) (interface{}, error)

Amber already provides a nice CompileFile function we just use that with default options.

func (AmberEngine) Render

func (a AmberEngine) Render(buf io.Writer, tmpl interface{}, data interface{}) error

type MustacheEngine

type MustacheEngine struct{}

func (MustacheEngine) CompileFile

func (m MustacheEngine) CompileFile(filepath string) (interface{}, error)

Mustache already provides a nice ParseFile function we just use that with default options.

func (MustacheEngine) Render

func (m MustacheEngine) Render(buf io.Writer, tmpl interface{}, data interface{}) error

Render the mustache template

Jump to

Keyboard shortcuts

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