def gather(cfg, store): parser = Parser(store) files = discover_files( cfg["roots"], cfg["includes"], cfg["excludes"]) for file in files: log.info("input file %r", file.abspath) parser.parse_text(file.read())
def do_www(cfg): site = StaticSite(cfg["output"]) files = discover_files( cfg["roots"], cfg["includes"], cfg["excludes"]) for file in files: if file.is_text: PrePage(site, file.path + ".html", file) else: Resource(site, file.path) site.make()