Class Template
java.lang.Object
io.mindspice.simplypages.core.Template
Compiled render plan built from a component tree.
Compilation flattens static HTML into string segments and keeps dynamic portions as slot or component segments. Modules are built during compilation to honor build-once lifecycle rules.
Security boundary: text slots and non-component values are escaped; compiled slot entries are treated as trusted HTML and inserted as-is.
Mutability/thread-safety: a template is effectively immutable after construction and can be reused across requests. Custom render overrides remain live delegates; their instances must also be safe to share. Thread-safety depends on these delegates and render contexts passed at call sites.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TemplateCompiles a reusable template from a component root.render(RenderContext context) Renders this template with the provided context.Renders this template from raw slot values.
-
Method Details
-
of
-
render
Renders this template with the provided context. -
render
-