-
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.
Merge pull request #62 from TeskaLabs/Enhancement/Add-library-bad-tem…
…plates Bad templates to be stored in library
- Loading branch information
Showing
9 changed files
with
64 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> |
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> |
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,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,2 @@ | ||
{# Attempt to access an undefined variable, which will raise an UndefinedError in Jinja2 #} | ||
{{ non_existent_variable + non_existent_variable }} |