1
0
forked from x/icebergs
icebergs/core/wiki/brief.go
2022-06-19 12:12:58 +08:00

20 lines
543 B
Go

package wiki
import (
ice "shylinux.com/x/icebergs"
"shylinux.com/x/icebergs/base/nfs"
kit "shylinux.com/x/toolkits"
)
const BRIEF = "brief"
func init() {
Index.Merge(&ice.Context{Commands: map[string]*ice.Command{
BRIEF: {Name: "brief text", Help: "摘要", Hand: func(m *ice.Message, arg ...string) {
_wiki_template(m, m.CommandKey(), "", arg[0], arg[1:]...)
}},
}, Configs: map[string]*ice.Config{
BRIEF: {Name: BRIEF, Help: "摘要", Value: kit.Data(nfs.TEMPLATE, `<p {{.OptionTemplate}}>{{.Option "text"}}</p>`)},
}})
}