Jinja2 template (deprecated)

../../../../../_images/jinja_template.svg

Create and render a jinja2 template. Use “{{column name}}” for access to the first row of columns, or use “arg” inside a jinja for-loop to access full table.

Warning

This node is deprecated and will be removed in version 1.7.0. Please use Jinja2 template instead.

Documentation

Create and render a jinja2 template. See Jinja2 for full syntax of the template engine.

Use {{column name}} for accessing the first row of a column, or use ‘arg’ inside a jinja for-loop to access full table.

Example of iterating over each column:

{% for name in arg.column_names() %}
   The column name is: {{name}}
   The column data is: {% for value in arg.col(name).data %} {{value}} {% endfor %}
{% endfor %}

Example of iterating over each row:

{% for row in arg.to_rows() %}
   {% for value in row %} {{value}} {% endfor %}
{% endfor %}

Definition

Input ports:
in

table

Input data

Output ports:
out

text

Rendered Template

Configuration:
Template: (template)

Enter template here

class node_text_operations.Jinja2TemplateOld[source]