1
0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-11-23 21:22:47 +01:00
kiln/format.go

13 lines
241 B
Go
Raw Normal View History

2021-02-28 03:53:16 +01:00
package main
// Format represents an output format.
type Format interface {
Format(*Page) (path string, content []byte)
2021-02-28 03:53:16 +01:00
}
type FormatFunc func(*Page) (string, []byte)
2021-02-28 03:53:16 +01:00
func (f FormatFunc) Format(p *Page) (string, []byte) {
return f(p)
2021-02-28 03:53:16 +01:00
}