Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Create a dictionary for retrieving template's raw body, metadata, and compiled HTML

            @wraps(func)
    def wrapper(*args, **kwds):
        logger.debug("<--->")
        for i in (a for a in zip(argnames, args) + kwds.items()):
            logger.debug("%s: %s", fname, func.__doc__)
            logger.debug(i)
        logger.debug("<--->")
        return func(*args, **kwds)
        


src/f/r/frozen-pie-HEAD/pie-test/tests.py   frozen-pie(Download)
    def test_load_dynamic_templates(self):
        dynamic_templates = templates.load(self.config)
        for template in dynamic_templates:
            assert types.DictType == type(template)
        assert 1 == len(dynamic_templates)
        assert dynamic_templates[0]['name'] == "blog"
 
    def test_load_lambdas(self):
        contents_data = contents.load(self.config)
        dynamic_templates = templates.load(self.config)
    def test_all_bakes(self):
        contents_data = contents.load(self.config)
        dynamic_templates = templates.load(self.config)
        lambdas_data = lambdas.load(self.config, contents_data, dynamic_templates)
        contents.bake(self.config, contents_data, lambdas_data)
    def test_htmlstache(self):
        contents_data = contents.load(self.config)
        dynamic_templates = templates.load(self.config)
        lambdas_data = lambdas.load(self.config, contents_data, dynamic_templates)
        template = read_yaml(self.config["templates_path"], "blog.mustache")[1]