Available Liquid tags
Note
Effective October 12, 2022, Power Apps portals is Power Pages. More information: Microsoft Power Pages is now generally available (blog)
We will soon migrate and merge the Power Apps portals documentation with Power Pages documentation.
Tags make up the programming logic that tells templates what to do. Tags are wrapped in {% %}.
{% if user.fullname == 'Dave Bowman' %} Hello, Dave. {% endif %}
White space control
Normally, Liquid renders everything outside of variable and tag blocks verbatim, with all the white space as-is. Occasionally you don't want the extra white space, but you still want to format the template cleanly, which requires white space.
You can tell the engine to strip all leading or trailing white space by adding a hyphen (-) to the start or end block tag.
Code
{% for i in (1..5) -%}
{{ i }}
{%- endfor %}
Output
12345
See also
Feedback
Submit and view feedback for