Skip to main content

Simple Template Engine

Render a template using values provided in a JSON file. The template can contain one or more variables enclosed in {{ and }}. For each variable, specify a value in the JSON using key-value pairs. For example, a template containing Welcome to {{company}} with a JSON file containing {"company": "Grexx"} will return Welcome to Grexx.

You can download this system service from Grexx Marketplace.

Input​

Use a casetype activity to add inputs to the Start Systemservice Simple Template Engine form.

AttributeData typeMandatory?Description
JSONJSONNoA flat JSON file containing key-value pairs with keys that correspond to the template.
TemplateStringNoThe template with one or more input variables enclosed in {{ and }}.

The variable names may contain a-z in lower and/or upper case letters, any digit, - (dash), and _ (underscore).

The input JSON should be "flat". This means it can only contain keys at the root level of the JSON. Nesting is not supported.

Output​

Outputs are added to the Result Systemservice Simple Template Engine form when the Systemservice Simple Template Engine case is closed.

AttributeData typeMandatory?Description
OutputStringNoThe template populated with values from the JSON.