def main():
    raw_content = parsing.parse_content()["concepts"]
    templated_concepts = [
        templating.apply_template("templates/concept.html", **concept)
        for concept in raw_content]
    concatinated_concepts = "".join(templated_concepts)
    content = templating.apply_template("templates/page.html",
        content = concatinated_concepts)
    output.write_output(content)
def main():
    raw_content = parsing.parse_content()["concepts"]
    templated_concepts = [
        templating.apply_template("templates/concept.html", **concept)
        for concept in raw_content
    ]
    concatinated_concepts = "".join(templated_concepts)
    content = templating.apply_template("templates/page.html",
                                        content=concatinated_concepts)
    output.write_output(content)
Example #3
0
 def process_feed_content(parsed_feed):
     """Processes sinlge feed content"""
     for parsed_content in ps.parse_content(parsed_feed):
         schema.sanitize(parsed_content)
         schema.serialize(parsed_content)
         yield {
             "identifier": parsed_content["identifier"],
             "published": parsed_content["published_parsed"],
             "description": parsed_content["description"],
             "description_hash": parsed_content["description_hash"],
             "title": parsed_content["title"],
             "link": parsed_content["link"],
             "tokenized_count": parsed_content["tokenized_count"],
             "tokenized_plain": parsed_content["tokenized_plain"],
         }