Clean up the css related template funcs package structure

Deprecate and move:

* resources.ToCSS => css.SASS
* resources.PostProcess => css.PostProcess
* resources.Babel => js.Babel

Updates #12618
This commit is contained in:
Bjørn Erik Pedersen
2024-06-23 12:10:35 +02:00
parent 1687a9a585
commit eddcd2bac6
7 changed files with 241 additions and 162 deletions

View File

@@ -51,6 +51,9 @@ type TemplateFuncsNamespace struct {
// This is the method receiver.
Context func(ctx context.Context, v ...any) (any, error)
// OnCreated is called when all the namespaces are ready.
OnCreated func(namespaces map[string]any)
// Additional info, aliases and examples, per method name.
MethodMappings map[string]TemplateFuncMethodMapping
}