all repos — nirvash @ 8e8fd65f92536383734ad1824500c196b2bc2000

modular CMS using the quartzgun library

archetype/adapter.go (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package archetype

type Adapter interface {
	Init(cfg *Config)
	Name() string
	GetConfig(key string) (interface{}, error)
	SetConfig(key string, value interface{}) error
	ListPages() map[string]string
	GetPage(string) (Page, error)
	FormatPage(string) string
	FormattingHelp() string
	CreatePage(page Page) error
	EditPage(old Page, new Page) error
	DeletePage(page Page) error
	Build() string
}