Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateGetter ¶
type TemplateGetter interface { // Get retrieves a Template parsed from the file indicated by the path argument. // The path argument is relative to the hack directory at the root of this repo. Get(path string) (*tmpl.Template, error) }
TemplateGetter encapsulates the task of getting template data from the repository.
func NewCompiledTemplateGetter ¶
func NewCompiledTemplateGetter() TemplateGetter
func NewFSTemplateGetter ¶
func NewFSTemplateGetter(basepath string) TemplateGetter
NewFSTemplateGetter returns a template getter that can find templates from paths within the root "hack" directory of the repository it assumes its own relative path within the project structure see tests get_tests.go to help understand how it is used.
Click to show internal directories.
Click to hide internal directories.