8.1.5.1.1. cobbler.web.templatetags package¶
8.1.5.1.1.1. Submodules¶
8.1.5.1.1.2. cobbler.web.templatetags.site module¶
Bases:
object
Bases:
object
alias of
builtins.ValueError
Bases:
django.template.base.Node
Return a list of all nodes (within this node and its nodelist) of the given type
Return the node rendered as a string.
Bases:
unittest.case.TestCase
Test a calculation is True, also checking the inverse “negate” case.
Test a calculation is False, also checking the inverse “negate” case.
Hook method for setting up the test fixture before exercising it.
Bases:
cobbler.web.templatetags.site.IfParser
alias of
django.template.exceptions.TemplateSyntaxError
Bases:
object
A basic self-resolvable object similar to a Django template variable. Used to assist with tests.
A smarter {% if %} tag for django templates.
While retaining current Django functionality, it also handles equality, greater than and less than operators. Some common case examples:
{% if articles|length >= 5 %}...{% endif %} {% if "ifnotequal tag" != "beautiful" %}...{% endif %}
Arguments and operators _must_ have a space between them, so
{% if 1>2 %}
is not a valid smart if tag.All supported operators are:
or
,and
,in
,=
(or==
),!=
,>
,>=
,<
and<=
.
A smarter {% if %} tag for django templates.
While retaining current Django functionality, it also handles equality, greater than and less than operators. Some common case examples:
{% if articles|length >= 5 %}...{% endif %} {% if "ifnotequal tag" != "beautiful" %}...{% endif %}
A smarter {% if %} tag for django templates.
While retaining current Django functionality, it also handles equality, greater than and less than operators. Some common case examples:
{% if articles|length >= 5 %}...{% endif %} {% if "ifnotequal tag" != "beautiful" %}...{% endif %}
Arguments and operators _must_ have a space between them, so
{% if 1>2 %}
is not a valid smart if tag.All supported operators are:
or
,and
,in
,=
(or==
),!=
,>
,>=
,<
and<=
.