Pug

Go to Product

Apply a Pug template to a given JSON object which provides the variables.

Pug is a high-performance template engine heavily influenced by Haml and implemented with JavaScript for Node.js and in Java via Pug4J. It allows for clean, whitespace-sensitive HTML templates with powerful variable interpolation.

You can pass JSON cells which contain the variable data and reference them within your Pug templates directly by variable name. For example, for a JSON cell with the content { "firstname" : "Bob" , "lastname": "Ross" }, you can render the values as follows:

p #{data.firstname} #{data.lastname}

You can reference flow variable values (primitive and array types) through the variables property.

Options

Pug Template
The Pug template.
Variables Column
The input JSON cell which provides the variables.
Output Column
The name of the appended column.
Content Type
Determine whether to preview in HTML or plain text.
Open Live Preview
Click to open a web browser which shows a preview of the rendered Pug template. The preview will automatically update when you make changes to the template.

Input Ports

Icon
Table with a JSON column which provides the variables.

Output Ports

Icon
Table with an appended String column which contains the applied template.

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

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.