Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ataylor32 committed May 21, 2024
1 parent 18b74dc commit 3e870a9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
10 changes: 10 additions & 0 deletions tests/testproject/templates/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test</title>
</head>
<body>
{% block content %}{% endblock content %}
</body>
</html>
26 changes: 15 additions & 11 deletions tests/testproject/templates/test.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
{% extends "base.html" %}

{% load friendly_loader %}
{% friendly_load error_tags %}
{% friendly_load webdesign %}

{% if_has_tag lorem %}
{% block content %}
{% if_has_tag lorem %}
<p>SUCCESS</p>
{% lorem %}
{% else %}
{% else %}
<p>FAIL</p>
{% endif_has_tag %}
{% endif_has_tag %}

{% if_has_tag fail %}
{% if_has_tag fail %}
<p>FAIL</p>
{% fail %}
{% else %}
{% else %}
<p>SUCCESS</p>
{% endif_has_tag %}
{% endif_has_tag %}

{% ifnot_has_tag now nonexisting_tag %}
{% ifnot_has_tag now nonexisting_tag %}
{% now "Y" %}
{% endifnot_has_tag %}
{% endifnot_has_tag %}

{% if_has_tag now %}
{% if_has_tag now %}
{% now "Y" %}
{% else %}
{% else %}
FAIL
{% endif_has_tag %}
{% endif_has_tag %}
{% endblock content %}

0 comments on commit 3e870a9

Please sign in to comment.