github.com/wawandco/ox@v0.13.6-0.20230809142027-913b3d837f2a/plugins/tools/ox/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  }