github.com/segakazzz/buffalo@v0.16.22-0.20210119082501-1f52048d3feb/genny/build/_fixtures/coke/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 r *render.Engine
     9  var assetsBox = packr.NewBox("app:assets", "../public")
    10  
    11  func init() {
    12  	r = render.New(render.Options{
    13  		// HTML layout to be used for all HTML requests:
    14  		HTMLLayout: "application.plush.html",
    15  
    16  		// Box containing all of the templates:
    17  		TemplatesBox: packr.New("../templates", "../templates"),
    18  		AssetsBox:    assetsBox,
    19  
    20  		// Add template helpers here:
    21  		Helpers: render.Helpers{
    22  			// uncomment for non-Bootstrap form helpers:
    23  			// "form":     plush.FormHelper,
    24  			// "form_for": plush.FormForHelper,
    25  		},
    26  	})
    27  }