1
0
forked from x/icebergs
icebergs/core/wiki/brief.go
2022-07-09 20:13:21 +08:00

20 lines
521 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: ice.Commands{
BRIEF: {Name: "brief text", Help: "摘要", Hand: func(m *ice.Message, arg ...string) {
_wiki_template(m, m.CommandKey(), "", arg[0], arg[1:]...)
}},
}, Configs: ice.Configs{
BRIEF: {Name: BRIEF, Help: "摘要", Value: kit.Data(nfs.TEMPLATE, `<p {{.OptionTemplate}}>{{.Option "text"}}</p>`)},
}})
}