Saxonberg Server API
    Preparing search index...

    Class ProseApi

    Index

    Constructors

    Methods

    Constructors

    Methods

    • One-shot: parse and render. Use Prose.parse + render for hot paths where the template source is constant — the compiled form skips re-parsing on every call.

      Parameters

      • source: string
      • vars: Record<string, unknown>

      Returns Mml

    • Register a custom filter usable as {{ x | name }} (with optional args: {{ x | name: 'arg' }}). Filters that return Mml fragments compose with the Mml-aware output handler; raw-string returns get five-entity escaping.

      Parameters

      Returns void