Liquex.Tag.AssignTag (liquex v0.9.0) 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

Functions

Callback implementation for Liquex.Tag.parse/0.

Callback implementation for Liquex.Tag.render/2.

Link to this section Functions

Callback implementation for Liquex.Tag.parse/0.

Callback implementation for Liquex.Tag.render/2.