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() },
}
