github.com/cheikhshift/buffalo@v0.9.5/generators/action/templates.go (about)

     1  package action
     2  
     3  const (
     4  	rActionFileT = `package actions
     5  import "github.com/gobuffalo/buffalo"`
     6  
     7  	rViewT = `<h1>{{.namespace}}#{{.action}}</h1>`
     8  
     9  	rActionFuncT = `
    10  // {{.namespace}}{{.action}} default implementation.
    11  func {{.namespace}}{{.action}}(c buffalo.Context) error {
    12  	return c.Render(200, r.HTML("{{.namespace_under}}/{{.action_under}}.html"))
    13  }
    14  `
    15  )