X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/a2d75eae2cab588a28155b9c901935aa8d664d5f..55b9014e00e00ba004d9c96e0f8e9cce2f203e89:/philo/loaders/database.py?ds=sidebyside diff --git a/philo/loaders/database.py b/philo/loaders/database.py index 141aedd..4c9c379 100644 --- a/philo/loaders/database.py +++ b/philo/loaders/database.py @@ -1,10 +1,15 @@ from django.template import TemplateDoesNotExist from django.template.loader import BaseLoader from django.utils.encoding import smart_unicode + from philo.models import Template class Loader(BaseLoader): + """ + :class:`philo.loaders.database.Loader` enables loading of template code from :class:`.Template`\ s. This would let :class:`.Template`\ s be used with ``{% include %}`` and ``{% extends %}`` tags, as well as any other features that use template loading. + + """ is_usable=True def load_template_source(self, template_name, template_dirs=None):