1
0
mirror of https://github.com/volatiletech/authboss.git synced 2024-11-28 08:58:38 +02:00
authboss/renderer.go
Aaron L d4f4f6c443 Rewrite auth module
Discovered many problems with the abstractions along the way
and did small fixes to get to the end of the auth module.

- Use more constants for random strings
- Create forcing functions to deal with the upgrades to different
  interfaces
2018-02-04 21:24:55 -08:00

13 lines
371 B
Go

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)
}