mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
* Converted the ``libraries`` and ``builtins`` globals of ``django.template.base`` into properties of the Engine class. * Added a public API for explicit registration of libraries and builtins.
This commit is contained in:
parent
7b8008a078
commit
655f524915
49 changed files with 949 additions and 594 deletions
|
@ -5,6 +5,7 @@ from ..utils import setup
|
|||
|
||||
|
||||
class IfChangedTagTests(SimpleTestCase):
|
||||
libraries = {'custom': 'template_tests.templatetags.custom'}
|
||||
|
||||
@setup({'ifchanged01': '{% for n in num %}{% ifchanged %}{{ n }}{% endifchanged %}{% endfor %}'})
|
||||
def test_ifchanged01(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue