github.com/wawandco/oxpecker@v1.5.7-0.20210910201653-5958d4afdd89/tools/buffalo/render/templates/render.go.tmpl (about) 1 package render 2 3 import ( 4 base "{{.}}" 5 6 "github.com/gobuffalo/buffalo/render" 7 ) 8 9 // Engine for rendering across the app, it provides 10 // the base for rendering HTML, JSON, XML and other formats 11 // while also defining thing like the base layout. 12 var Engine = render.New(render.Options{ 13 HTMLLayout: "application.plush.html", 14 TemplatesBox: base.Templates, 15 AssetsBox: base.Assets, 16 Helpers: Helpers, 17 }) 18 19 // Helpers available for the plush templates, there are 20 // some helpers that are injected by Buffalo but this is 21 // the list of custom Helpers. 22 var Helpers = map[string]interface{}{ 23 // partialFeeder is the helper used by the render engine 24 // to find the partials that will be used, this is important 25 "partialFeeder": base.Templates.FindString, 26 }