add core view extension with JTE and Thymeleaf support

This commit is contained in:
Relism
2026-04-21 00:32:09 +02:00
parent 34fd74068a
commit 9e19f439be
93 changed files with 2200 additions and 1404 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ package dev.relism;
* <p>Dev mode enables:
* <ul>
* <li>HTML error pages with full stack traces (default: JSON generic responses in prod)</li>
* <li>Template cache disabled in {@code flash-ext-view}</li>
* <li>Template cache disabled in {@code flash-ext-view-thymeleaf}</li>
* </ul>
*
* <p>Extensions can read {@link #DEV} to branch behavior without re-implementing the detection:
@@ -31,7 +31,7 @@ public final class FlashScope extends FlashRegistrar<FlashScope> {
private final List<RouteDefinition> deferredRoutes = new ArrayList<>();
FlashScope(String namespace, FlashContext parentCtx) {
this.namespace = namespace;
this.namespace = PathUtils.sanitize(namespace);
this.ctx = parentCtx.child();
}
@@ -54,5 +54,5 @@ public final class FlashScope extends FlashRegistrar<FlashScope> {
List<RouteDefinition> routes() { return deferredRoutes; }
private String ns(String path) { return namespace + PathUtils.sanitize(path); }
private String ns(String path) { return PathUtils.join(namespace, path); }
}