templates

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2015 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate() error

func GetAllThemes

func GetAllThemes() []string

func ShowAuthorRss

func ShowAuthorRss(writer http.ResponseWriter, slug string) error

func ShowAuthorTemplate

func ShowAuthorTemplate(writer http.ResponseWriter, slug string, page int) error

func ShowIndexRss

func ShowIndexRss(writer http.ResponseWriter) error

func ShowIndexTemplate

func ShowIndexTemplate(writer http.ResponseWriter, page int) error

func ShowPostTemplate

func ShowPostTemplate(writer http.ResponseWriter, slug string) error

func ShowTagRss

func ShowTagRss(writer http.ResponseWriter, slug string) error

func ShowTagTemplate

func ShowTagTemplate(writer http.ResponseWriter, slug string, page int) error

Types

type Helper

type Helper struct {
	Name       string
	Arguments  []Helper
	Unescaped  bool
	Position   int
	Block      []byte
	Children   []Helper
	Function   func(*Helper, *structure.RequestData) []byte
	BodyHelper *Helper
}

Helpers are created during parsing of the theme (template files). Helpers should never be altered during template execution (Helpers are shared across all requests).

type Templates

type Templates struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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