assign

Description

Used to assign a value to a variable.

Syntax

{% assign <variable_name> = <value> %}

Example

{% assign article = contents.news.first %}
{{ article.title }}
{{ article.body }}
© 2024 LocomotiveCMS Terms of use Privacy Policy
Back to top