Class VanTemplate

java.lang.Object
dev.vanengine.core.VanTemplate

public class VanTemplate extends Object
A compiled, immutable template holding HTML with {{ expr }} placeholders. Thread-safe and reusable — separate from the expensive WASM compilation step.
  • Method Details

    • evaluate

      public String evaluate(Map<String,?> model, String locale)
      Interpolate placeholders with model data and locale-specific i18n messages.
    • evaluate

      public String evaluate(Map<String,?> model)
      Interpolate {{{ expr }}} (raw) and {{ expr }} (escaped) placeholders with model data. Supports $t() expressions for i18n translation when $i18n is present in the model.
    • getHtml

      public String getHtml()
      Return the raw compiled HTML (with unresolved {{ expr }} placeholders).