1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 09:34:05 +08:00
icebergs/core/code/html.go
2022-12-17 09:11:41 +08:00

20 lines
483 B
Go

package code
import (
"path"
ice "shylinux.com/x/icebergs"
"shylinux.com/x/icebergs/base/mdb"
kit "shylinux.com/x/toolkits"
)
func init() {
Index.MergeCommands(ice.Commands{
HTML: {Name: "html path auto", Help: "网页", Actions: ice.MergeActions(ice.Actions{
mdb.RENDER: {Hand: func(m *ice.Message, arg ...string) {
m.Echo(`<iframe src="%s"></iframe>`, kit.MergeURL(path.Join("/require/", arg[2], arg[1]), "_", kit.Hashs("uniq")))
}},
}, PlugAction())},
})
}