mirror of
https://github.com/volatiletech/authboss.git
synced 2025-01-24 05:17:10 +02:00
de1c2ed081
- Change changelog format to use keepachangelog standard - Refactor the config to be made of substructs to help organize all the pieces - Add the new interfaces to the configuration - Clean up module loading (no unnecessary reflection to create new value) - Change User interface to have a Get/SetPID not E-mail/Username, this way we don't ever have to refer to one or the other, we just always assume pid. In the case of Confirm/Recover we'll have to make a GetEmail or there won't be a way for us to get the e-mail to send to. - Delete the xsrf nonsense in the core
13 lines
370 B
Go
13 lines
370 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(name ...string) error
|
|
|
|
// Render the given template
|
|
Render(ctx context.Context, name string, data HTMLData) (output []byte, contentType string, err error)
|
|
}
|