github.com/wawandco/oxpecker@v1.5.7-0.20210910201653-5958d4afdd89/tools/buffalo/action/templates/home.go.tmpl (about) 1 package home 2 3 import ( 4 "{{.}}/app/render" 5 "net/http" 6 7 "github.com/gobuffalo/buffalo" 8 ) 9 10 var ( 11 // r is a buffalo/render Engine that will be used by actions 12 // on this package to render render HTML or any other formats. 13 r = render.Engine 14 ) 15 16 func Index(c buffalo.Context) error { 17 return c.Render(http.StatusOK, r.HTML("home/index.plush.html")) 18 }