diff --git a/base/web/render.go b/base/web/render.go index 85dd0bab..ec9909b9 100644 --- a/base/web/render.go +++ b/base/web/render.go @@ -179,9 +179,9 @@ var _main_template = ` volcanos - - - + + + @@ -194,7 +194,7 @@ var _cmd_template = ` volcanos - + diff --git a/core/code/html.go b/core/code/html.go new file mode 100644 index 00000000..4c6d8ff6 --- /dev/null +++ b/core/code/html.go @@ -0,0 +1,19 @@ +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(``, kit.MergeURL(path.Join("/require/", arg[2], arg[1]), "_", kit.Hashs("uniq"))) + }}, + }, PlugAction())}, + }) +}