Class VanRuntime

java.lang.Object
dev.vanengine.core.runtime.VanRuntime

public class VanRuntime extends Object
Server-side rendering processor for Van templates. AST-based single-pass: parse → walk tree (v-for/v-if/v-show/:class/{{ }}) → serialize.
  • Method Details

    • processAll

      public static String processAll(String html, Map<String,Object> scope)
      Process all SSR directives with default timeout (5s).
    • processAll

      public static String processAll(String html, Map<String,Object> scope, long timeoutMs)
      Process all SSR directives with custom timeout.
      Parameters:
      timeoutMs - maximum processing time in milliseconds (0 = no limit)
    • renderAst

      public static String renderAst(List<VanAst.Node> nodes, Map<String,Object> scope)
      Process on pre-parsed AST nodes (avoids re-parsing for cached templates).