- golem15.sitemap plugin: golem15_sitemap_definitions migration, Definition model (Fillable theme and data) with tolerant PHP-shaped item decoding and PHP toArray item encoding - Url::to and buildUrl port, libxml-format serializer, generator for url and registry items - GET /sitemap.xml serves the definition with theme default (404 without one, empty body without items) - tests/php/gen-goldens.php and the tracer golden; TestSitemapGolden and the Postgres TestSitemapTracer
17 lines
370 B
Go
17 lines
370 B
Go
// Package models holds the sitemap plugin's GORM models: the sitemap
|
|
// definition and its items.
|
|
package models
|
|
|
|
var all []any
|
|
|
|
// Register appends GORM models so later files add models without editing
|
|
// plugin.go.
|
|
func Register(models ...any) {
|
|
all = append(all, models...)
|
|
}
|
|
|
|
// All returns every model registered by this package.
|
|
func All() []any {
|
|
return all
|
|
}
|