mirror of https://github.com/mickael-menu/zk
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
305 B
Go
13 lines
305 B
Go
package core
|
|
|
|
// Template renders strings using a given context.
|
|
type Template interface {
|
|
Render(context interface{}) (string, error)
|
|
}
|
|
|
|
// TemplateLoader parses a given string template.
|
|
type TemplateLoader interface {
|
|
Load(template string) (Template, error)
|
|
LoadFile(path string) (Template, error)
|
|
}
|