render

package
v0.0.0-...-932fd32 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package render renders responses to clients

Index

Constants

This section is empty.

Variables

View Source
var (

	// HTML renderer which implements the Render method
	HTML = html{}
)
View Source
var Settings = Conventions{
	TemplateDirectory:  "web-src/html/",
	LogDebugMessages:   false,
	LogErrorMessages:   true,
	LogTemplateResults: false,
	CacheTemplates:     true,
	DelimPrefix:        "{",
	DelimSuffix:        "}",
}

Settings provides exported access to runtime configuration

Functions

This section is empty.

Types

type Conventions

type Conventions struct {
	TemplateDirectory  string
	LogDebugMessages   bool
	LogErrorMessages   bool
	LogTemplateResults bool
	CacheTemplates     bool
	DelimPrefix        string
	DelimSuffix        string
}

Conventions organizes the default settings for the Webserver renderer

type Renderer

type Renderer interface {
	Render(args ...interface{}) ([]byte, error)
}

Renderer is an interface type that different renderers should implement

Jump to

Keyboard shortcuts

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