-
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
mshivashankar
committed
Feb 7, 2024
1 parent
8dac171
commit 0b76a87
Showing
4 changed files
with
36 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,4 @@ | ||
{# Incorrect Jinja2 syntax (missing endfor) which will raise a TemplateSyntaxError #} | ||
{% for item in some_list %} | ||
{{ item }} | ||
{# Missing {% endfor %} here #} |
14 changes: 14 additions & 0 deletions
14
library/Templates/Attachment/undefined_variable_error.html
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,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Undefined Error Example</title> | ||
</head> | ||
<body> | ||
<h1>Attempting to Access an Undefined Variable</h1> | ||
<p> | ||
{# Accessing an undefined variable here #} | ||
{{ non_existent_variable + non_existent_variable }} | ||
</p> | ||
</body> | ||
</html> |
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,4 @@ | ||
{# Incorrect Jinja2 syntax (missing endfor) which will raise a TemplateSyntaxError #} | ||
{% for item in some_list %} | ||
{{ item }} | ||
{# Missing {% endfor %} here #} |
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,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Undefined Error Example</title> | ||
</head> | ||
<body> | ||
<h1>Attempting to Access an Undefined Variable</h1> | ||
<p> | ||
{# Accessing an undefined variable here #} | ||
{{ non_existent_variable + non_existent_variable }} | ||
</p> | ||
</body> | ||
</html> |