Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateEngine ¶
type TemplateEngine interface { // Render renders the given template using the context variables and helpers. Render(ctx context.Context, template string) (string, error) }
var (
Engine TemplateEngine = NewTemplateEngine()
)
func NewTemplateEngine ¶
func NewTemplateEngine() TemplateEngine
NewTemplateEngine returns a new template engine.
type TemplatedPath ¶
type TemplatedPath struct {
// contains filtered or unexported fields
}
func NewTemplatedPath ¶
func NewTemplatedPath(path string) TemplatedPath
type TemplatedString ¶
type TemplatedString struct {
// contains filtered or unexported fields
}
TemplatedString is a string that can be templated.
func NewTemplatedString ¶
func NewTemplatedString(str string) TemplatedString
NewTemplatedString creates a new TemplatedString.
Click to show internal directories.
Click to hide internal directories.