View Source Liquex.Tag.AssignTag (liquex v0.13.0)

Creates a new named variable.

Input

{% assign my_variable = false %}
{% if my_variable != true %}
  This statement is valid.
{% endif %}

Output

This statement is valid.

Wrap a value in quotations " to save it as a string variable.

Input

{% assign foo = "bar" %}
{{ foo }}

Output

bar

Summary

Functions

Link to this function

assign_contents(combinator \\ empty())

View Source

Callback implementation for Liquex.Tag.parse/0.

Callback implementation for Liquex.Tag.parse_liquid_tag/0.

Callback implementation for Liquex.Tag.render/2.