Source

muyhomepage2 / muyhomepage2 / app / build.py

Diff from to

File muyhomepage2/app/build.py

 def build(config):
     website = site.Site()
     website.pages = site.read_site_pages(config.page_cache())
+    site.update_site_tags(website, config.tag_cache())
     rebuild = set()
     cached = [p.filename for p in website.pages]
     for pagefile in page.walkpages(config.root()):
             rebuild.add(page.parse(spage.filename))
     compile_pages(config, website, rebuild)
     site.write_site_pages(website, config.page_cache())
+    site.write_site_tags(website, config.tag_cache())
 
 
 def compile_pages(config, website, rebuild):
 def compile_page(config, website, pctx):
     print 'Building:', pctx.page.title
     tname = pctx.template()
-    scope = dict(current=pctx, site=website, config=config)
+    scope = dict(current=pctx, site=website, config=config,
+            ext=pctx.extension(website, config))
     env = config.templateenv()
     template = env.get_template(tname)
     fp = open(os.path.join(config.destination(), pctx.finalname()), 'w')