-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{# | ||
Copyright 2024 Scape Agency BV | ||
#} | ||
|
||
{# | ||
Variable (<var>) | ||
=========================================================================== | ||
Defines a variable in a mathematical expression or programming context. | ||
Variables: | ||
- `var_text`: The text to be displayed as a variable. Defaults to | ||
"variable". | ||
Notes: | ||
- The `| e` filter is used to escape any special characters in the | ||
variables to prevent XSS attacks. | ||
- The <var> element is typically used to format variables in mathematical | ||
expressions or computer code. | ||
Links: | ||
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/var | ||
- https://www.w3schools.com/tags/tag_var.asp | ||
#} | ||
|
||
<var>{{ var_text | default('variable') | e }}</var> |