github.com/jasonish/buffalo@v0.8.2-0.20170413145823-bacbdd415f1b/generators/newapp/templates/actions/render.go.tmpl (about)

     1  package actions
     2  
     3  import (
     4    "github.com/gobuffalo/packr"
     5    "github.com/gobuffalo/buffalo/render"
     6  )
     7  
     8  var r *render.Engine
     9  
    10  func init() {
    11    r = render.New(render.Options{
    12      // HTML layout to be used for all HTML requests:
    13      HTMLLayout:     "application.html",
    14  
    15      // Box containing all of the templates:
    16      TemplatesBox: packr.NewBox("../templates"),
    17  
    18      // Add template helpers here:
    19      Helpers: render.Helpers{},
    20    })
    21  }