Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/k/e/keops-HEAD/keops/template/loaders/app_directories.py   keops(Download)
    def load_template(self, template_name, template_dirs=None):
        if template_name.endswith('.mako'):
            from keops.template.mako import Template
            source, origin = self.load_template_source(template_name, template_dirs)
            template = Template(source, lookup=self._get_lookup('mako'))
        elif template_name.endswith('.jinja2'):
            from keops.template.jinja2 import Template
            source, origin = self.load_template_source(template_name, template_dirs)

src/d/j/django-classy-mail-0.1.2/classy_mail/mixins/md_template.py   django-classy-mail(Download)
    def load_template(self, template_name, template_dirs=None):
        source, display_name = self.load_template_source(template_name,
                                                         template_dirs)
        origin = make_origin(display_name, self.load_template_source,
                             template_name, template_dirs)

src/s/t/storyboard-HEAD/common/loaders.py   storyboard(Download)
    def load_template(self, template_name, template_dirs=None):
        # logging.info('load_template')
        # logging.info(template_name)
        # logging.info(template_dirs)
        source, origin = self.load_template_source(template_name, template_dirs)

src/d/j/django-templation-HEAD/templation/loaders.py   django-templation(Download)
    def load_template(self, template_name, template_dirs=None):
        source, origin = self.load_template_source(template_name, template_dirs)
        override, _ = will_override()
        if SANDBOX and override:
            template = use_safe_templates(Template)(source)

src/p/o/Pootle-2.5.1.1/pootle/apps/pootle_store/templatetags/store_tags.py   Pootle(Download)
 
    template_loader = Loader()
    source, path = template_loader.load_template_source(template_name)
 
    return template.TextNode(source)

src/d/j/django-app-namespace-template-loader-HEAD/app_namespace/tests/tests.py   django-app-namespace-template-loader(Download)
 
        template_directory = app_directory_loader.load_template_source(
            'admin/base.html')
        template_namespace = app_namespace_loader.load_template_source(
            'admin:admin/base.html')

src/d/j/django-app-namespace-template-loader-0.1/app_namespace/tests/tests.py   django-app-namespace-template-loader(Download)
 
        template_directory = app_directory_loader.load_template_source(
            'admin/base.html')
        template_namespace = app_namespace_loader.load_template_source(
            'admin:admin/base.html')