Ejemplo n.º 1
0
 def get_content(self):
     # we show the most recent news items
     md_content = ""
     news_items = news.news_items()
     for item in news_items[:min(5, len(news_items))]:
         md_content += item.markdown_link() + "\n\n"
     return text(md(md_content))
Ejemplo n.º 2
0
 def get_content(self):
     # we show the most recent news items
     md_content = ""
     news_items = news.news_items()
     for item in news_items[:min(5, len(news_items))]:
         md_content += item.markdown_link() + "\n\n"
     return text(md(md_content))
Ejemplo n.º 3
0
    def get_content(self):
        # we show the most recent news items
        content = """
<div class="news-wrapper">
$md__items
</div>
"""
        md_content = ""
        news_items = news.news_items()
        for item in news_items[:min(5, len(news_items))]:
            md_content += item.markdown_link() + "\n\n"
        return substitute_html(content, md__items=md(md_content))