kiln/format.go

13 lines
241 B
Go
Raw Normal View History

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