Documentation ¶
Overview ¶
Package render defines the standard interface for template rendering.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSON ¶
type JSON struct { // Pretty indicates if whitespace and newlines should be used. Pretty bool }
JSON implements a JSON renderer.
type MockRenderer ¶
MockRenderer is a test mock for the Renderer interface.
type MockTemplater ¶
MockTemplater is a test mock for the Templater interface.
type Renderer ¶
Renderer defines the method to render data to a writer. Examples of renderers may be HTML templates, Email templates, JSON documents, etc.
Click to show internal directories.
Click to hide internal directories.