Apply a Handlebars template to a given JSON object which provides the variables.
Handlebars is a simple templating language. It uses a template and an input object to generate HTML or other text formats. Handlebars templates look like regular text with embedded Handlebars expressions.
You can pass JSON cells which contain the variable data and
reference them within your Handlebars templates through the
data property. E.g. for a JSON call with the content
{ "firstname" : "Bob" ,"lastname": "Ross" }, you
can render the values as follows:
<p>{{ data.firstname }} {{ data.lastname }}</p>
You can reference flow variable values (primitive and array
types) through the variables property.
A handlebars expression is a {{, some contents, followed by a
}}. When the template is executed, these expressions are
replaced with values from an input object.
You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.
To use this node in KNIME, install the extension Palladian for KNIME from the below update site following our NodePit Product and Node Installation Guide:
A zipped version of the software site can be downloaded here.
Deploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!