mirror of
https://github.com/django-components/django-components.git
synced 2025-08-03 13:58:16 +00:00
11 lines
332 B
Python
11 lines
332 B
Python
"""
|
|
Template loader that loads templates from each Django app's "components" directory.
|
|
"""
|
|
|
|
from django.template.loaders.filesystem import Loader as FilesystemLoader
|
|
from django.template.utils import get_app_template_dirs
|
|
|
|
|
|
class Loader(FilesystemLoader):
|
|
def get_dirs(self):
|
|
return get_app_template_dirs('components')
|