1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-01-24 05:17:10 +02:00
authboss/renderer.go

13 lines
371 B
Go
Raw Normal View History

2017-02-20 14:28:38 -08:00
package authboss
import "context"
// Renderer is a type that can render a given template with some data.
type Renderer interface {
// Load the given templates, will most likely be called multiple times
Load(names ...string) error
// Render the given template
Render(ctx context.Context, page string, data HTMLData) (output []byte, contentType string, err error)
2017-02-20 14:28:38 -08:00
}