62 lines
1021 B
Plaintext
62 lines
1021 B
Plaintext
==================
|
|
With Basic
|
|
==================
|
|
|
|
{% with total=business.employees.count %}
|
|
{{ total }}
|
|
{% endwith %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(with_group
|
|
variable: (identifier)
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier)
|
|
(attribute))))
|
|
(template
|
|
(content)
|
|
(template_variable
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier)))))
|
|
(content)))
|
|
(content))
|
|
|
|
==================
|
|
With Multiple Variables
|
|
==================
|
|
|
|
{% with a=1 b=2 %}
|
|
{{ a }}
|
|
{% endwith %}
|
|
|
|
---
|
|
|
|
(template
|
|
(content)
|
|
(with_group
|
|
variable: (identifier)
|
|
(filtered_value
|
|
(value
|
|
(literal
|
|
(number))))
|
|
variable: (identifier)
|
|
(filtered_value
|
|
(value
|
|
(literal
|
|
(number))))
|
|
(template
|
|
(content)
|
|
(template_variable
|
|
(filtered_value
|
|
(value
|
|
(variable_attribute
|
|
(identifier)))))
|
|
(content)))
|
|
(content))
|