Unstack Dev Docs
Search…
Values
The Value tag will print the value of a data-element. This is useful when referencing the value of a system variable or predefined value, e.g. { i } to print the index of a generator from within a for operator.
1
{ element }
Copied!

Value Arguments:

  • element: DataLocator - the data-element storing the value to be printed
Note: Value tag can only be used in-between tags. For example,
1
<h2>{article.title}</h2>
Copied!
To use these variables in tag attributes use template literals instead. For example,
1
<div href={`/${article.relative_url}`}></div>
Copied!
Copy link