sorcery-go/pkg/templates/templates.go

23 lines
713 B
Go
Executable File

// Package templates embeds the spell-template files (details.tmpl, build.tmpl,
// depends.tmpl) into the binary via //go:embed so the Sorcery-Go binary stays
// a single portable file even when generating new spells via the WebUI.
package templates
import _ "embed"
// DetailsTemplate is the Go text/template for a spell's DETAILS file.
//go:embed details.tmpl
var DetailsTemplate string
// BuildTemplate is the default BUILD script.
//go:embed build.tmpl
var BuildTemplate string
// DependsTemplate is the DEPENDS file generator.
//go:embed depends.tmpl
var DependsTemplate string
// ConfigureTemplate is the CONFIGURE script that drives ICE queries.
//go:embed configure.tmpl
var ConfigureTemplate string