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

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

Link to this section Summary

Link to this section 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.