mirror of
https://github.com/volatiletech/authboss.git
synced 2024-11-28 08:58:38 +02:00
d4f4f6c443
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
13 lines
371 B
Go
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)
|
|
}
|