github.com/JarrahG/buffalocli@v0.0.0-20230801092127-b85bfd5d395a/internal/genny/fix/_fixtures/buffaloPre0_18web/actions/render.go (about) 1 package actions 2 3 import ( 4 "github.com/gobuffalo/buffalo/render" 5 "github.com/gobuffalo/packr/v2" 6 ) 7 8 var ( 9 r *render.Engine 10 assetsBox = packr.New("app:assets", "../public") 11 ) 12 13 func init() { 14 r = render.New(render.Options{ 15 // HTML layout to be used for all HTML requests: 16 HTMLLayout: "application.plush.html", 17 18 // Box containing all of the templates: 19 TemplatesBox: packr.New("app:templates", "../templates"), 20 AssetsBox: assetsBox, 21 22 // Add template helpers here: 23 Helpers: render.Helpers{ 24 // for non-bootstrap form helpers uncomment the lines 25 // below and import "github.com/gobuffalo/helpers/forms" 26 // forms.FormKey: forms.Form, 27 // forms.FormForKey: forms.FormFor, 28 }, 29 }) 30 }