This repository has been archived on 2023-08-27. You can view files and clone it, but cannot push or open issues or pull requests.
transfer.sh/internal/ghost/templates/gotpl/gotpl.go
Thorsten Schubert 2be57115f3 Vendor modules
* replace ghost with patched version
2022-06-29 14:12:27 +00:00

19 lines
409 B
Go

package gotpl
import (
"html/template"
"github.com/PuerkitoBio/ghost/templates"
)
// The template compiler for native Go templates.
type GoTemplateCompiler struct{}
// Implementation of the TemplateCompiler interface.
func (this *GoTemplateCompiler) Compile(f string) (templates.Templater, error) {
return template.ParseFiles(f)
}
func init() {
templates.Register(".tmpl", new(GoTemplateCompiler))
}