blob: 2f041d94a6daa92d97d59934eef258604e149d56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
"""
Tests utils for tagging.
"""
from django.template.loader import BaseLoader
class VoidLoader(BaseLoader):
"""
Template loader which is always returning
an empty template.
"""
is_usable = True
_accepts_engine_in_init = True
def load_template_source(self, template_name, template_dirs=None):
return ('', 'voidloader:%s' % template_name)
|