_examples/fasthttp/main.go
func init() {
	e := html.New(html.Config{Layout: "layouts/layout.html"})
	template.AddEngine(e)
	if err := template.Load(); err != nil {
		panic(err)
	}
}
func init() {
	e := html.New(html.Config{Layout: "layouts/layout.html"})
	template.AddEngine(e)
	if err := template.Load(); err != nil {
		panic(err)
	}
}
func init ( ) { e := html . New ( html . Config { Layout : " " } ) template . AddEngine ( e ) if err := template . Load ( ) ; err != nil { panic ( err ) } }
// In this example we will see how custom templates are cached,
// the same code snippet (httpcache.CacheFasthttp) is working for fasthttp-everything else.
// Here we're using a custom package which handles the templates with ease,
//  you can use the standard way too.
In this example we will see how custom templates are cached the same code snippet ( httpcache . CacheFasthttp ) is working for fasthttp - everything else . Here we re using a custom package which handles the templates with ease you can use the standard way too .