Package io.karatelabs.markup
Interface MarkupScope
- All Known Implementing Classes:
MarkupTemplateContext
public interface MarkupScope
Current-eval scope accessor injected onto a
MarkupContext
by MarkupTemplateContext at engine-bind time. Backs the
context.get(name, default?) accessor that fragments use to read
optional names without triggering the strict-ReferenceError path.-
Method Summary
-
Method Details
-
lookup
Look upnamein the current eval scope. Checks the_underscore namespace first, then the wrapped Thymeleaf scope (which carries everyth:with-bound name, every global, and every level-flushed entry). Returns the bound non-null value, ornullwhen the name is unset or explicitly null. -
set
Write-side companion tolookup(String). Storesvalueundernamein the_underscore namespace of the current render. Backscontext.set(name, value); equivalent to writing_.<name> = valuefrom JS. Default no-op for implementations that don't carry per-render write state.
-