719 B
719 B
Architecture
flash-ext-view-thymeleaf has two layers:
-
Boot-time
ThymeleafExtensioninstalls runtime + annotation processor.ThymeleafTargetResolvervalidates handlers and resolves@Template/@Fragment.- Resolved targets are cached per handler class.
-
Request-time
- Handler builds local
ViewModel. - Runtime injects globals under reserved
globalnamespace and merges local model. - Thymeleaf renders template or fragment.
- Handler builds local
Handler Contract
- Must extend
ThymeleafHandler. - Must have route annotation (
@Route,@GET,@POST, ...). - Must declare exactly one view annotation:
@Template@Fragment
Invalid configurations fail fast at startup.