mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +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
|
@ -14,7 +14,10 @@ OTHER_DIR = os.path.join(ROOT, 'other_templates')
|
|||
class DeprecatedRenderToStringTest(SimpleTestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.engine = Engine(dirs=[TEMPLATE_DIR])
|
||||
self.engine = Engine(
|
||||
dirs=[TEMPLATE_DIR],
|
||||
libraries={'custom': 'template_tests.templatetags.custom'},
|
||||
)
|
||||
|
||||
def test_basic_context(self):
|
||||
self.assertEqual(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue