Runjucks
    Preparing search index...

    Function renderStringFromJson

    • Like [render_string], but the context is JSON text (e.g. from JSON.stringify(ctx) in JS). Skips N-API object→JSON conversion on the JS side when you already have a string; Rust still parses to serde_json::Value before render. Build with --features fast-json on runjucks-napi for a faster JSON parse when profiling shows ingress dominates.

      Parameters

      • template: string
      • contextJson: string

      Returns string