smartblock/registration.go
Alex Dunmow 226a2685f0 feat(sdk): migrate block/core → block/pluginsdk v0.1.0
Imports rewritten to the extracted plugin SDK module (P2 of the proto-first
plugin SDK program); block/core require dropped. Wasm build + check-safety
verified.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 11:16:05 +08:00

20 lines
555 B
Go

package main
import (
"net/http"
"git.dev.alexdunmow.com/block/pluginsdk/blocks"
"git.dev.alexdunmow.com/block/pluginsdk/templates"
"git.dev.alexdunmow.com/block/pluginsdk/plugin"
)
// Registration is the compile-time plugin registration for the Smart Block.
var Registration = plugin.PluginRegistration{
Name: "smartblock",
Version: plugin.ParseModVersion(pluginModBytes),
Register: func(tr templates.TemplateRegistry, br blocks.BlockRegistry) error {
return Register(tr, br)
},
Assets: func() http.Handler { return AssetsHandler() },
}