mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-11-23 21:22:47 +01:00
13 lines
241 B
Go
13 lines
241 B
Go
package main
|
|
|
|
// Format represents an output format.
|
|
type Format interface {
|
|
Format(*Page) (path string, content []byte)
|
|
}
|
|
|
|
type FormatFunc func(*Page) (string, []byte)
|
|
|
|
func (f FormatFunc) Format(p *Page) (string, []byte) {
|
|
return f(p)
|
|
}
|