def get(self): recent_articles = controller.get_articles(self, order='-published_date', limit=4) popular_articles = controller.get_articles(self, order='-views', limit=4) self.render('home.html', popular_articles=popular_articles, recent_articles=recent_articles)
def get(self): articles = controller.get_articles(self, order='-created', limit=5) self.render('home.html', articles=articles)
def get(self): self.render('articles.html', articles=controller.get_articles(self, "-last_modified", 10, False))
def get(self): articles = controller.get_articles(self, order='-views', limit=30) self.render('popular.html', articles=articles)
def get(self): articles = controller.get_articles(self, order='-published_date', limit=30) self.render('recent.html', articles=articles)
def get(self): self.render('articles.html', articles=controller.get_articles(self, "title", include_content=False))