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>
20 lines
555 B
Go
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() },
|
|
}
|