github.com/ruudk/buffalo@v0.11.0/render/options.go (about) 1 package render 2 3 import "github.com/gobuffalo/packr" 4 5 // Helpers to be included in all templates 6 type Helpers map[string]interface{} 7 8 // Options for render.Engine 9 type Options struct { 10 // HTMLLayout is the default layout to be used with all HTML renders. 11 HTMLLayout string 12 13 // JavaScriptLayout is the default layout to be used with all JavaScript renders. 14 JavaScriptLayout string 15 16 // TemplatesBox is the location of the templates directory on disk. 17 TemplatesBox packr.Box 18 19 // AssetsBox is the location of the public assets the app will serve. 20 AssetsBox packr.Box 21 22 // Helpers to be rendered with the templates 23 Helpers Helpers 24 25 // TemplateEngine to be used for rendering HTML templates 26 TemplateEngines map[string]TemplateEngine 27 }