def getChapters(self, component, **kwargs): return Data(items=('Chapter1', 'Chapter2', 'Chapter3'))
def forEachResult(self): return Data(text="<?php foreach($results as $result): ?>")
def resultTitle(self): return Data(text="<?php echo $result->title() ?>")
def articleUrl(self): return Data(url="<?php echo $article->url() ?>")
def excerptArticle(self, length): return Data(text="<?php echo excerpt($article->text(), %d) ?>" % length)
def forEachArticle(self): return Data(loop="<?php foreach($articles as $article): ?>")
def ifPaginationHasPages(self): return Data(text="<?php if($articles->pagination()->hasPages()): ?>")
def getLogoUrl(self, component, **kwargs): return Data( url= 'http://data.xierpa.com.s3.amazonaws.com/_images/xierpa_x_green.png' )
def ifArticlesHasNext(self): return Data( text="<?php if($articles->pagination()->hasNextPage()): ?>")
def getFooter(self, component, **kwargs): return Data(text='Footer ' * 20)
def getLogo(self, component, **kwargs): return Data(text='Logo ' * 4)
def getArticle(self, component, **kwargs): return Data(text='Article ' * 300)
def getArticles(self, component, **kwargs): return Data(items=('Article1', 'Article2', 'Article3'))
def getFeaturedArticles(self, component, **kwargs): return Data(items=('Featured article1', 'Featured article2', 'Featured article3'))
def htmlTag(self): return Data(text="<?php echo html($tag) ?>")
def articlesNextUrl(self): return Data(url="<?= $articles->pagination()->nextPageURL() ?>")
def articleTagUrl(self): return Data(url="<?php echo url('articles/tag:' . urlencode($tag)) ?>")
def articlePublished(self): return Data(text="<?php echo html($article->published()) ?>")
def _forEach(self): return Data(text="<?php endforeach ?>")
def kirbyText(self): return Data(text="<?php echo kirbytext($page->text()) ?>")
def _if(self): return Data(text="<?php endif ?>")
def logoUrl(self): return Data(url="<?php echo url('assets/images/logo_petr.png') ?>")
def articleTitle(self): return Data(text="<?php echo html($article->title()) ?>")
def tagsLabel(self): return Data(text="Tags: ")
def ifResults(self): return Data(text="<?php if($results): ?>")
def forEachPageTag(self): return Data( text="<?php foreach(str::split($page->tags()) as $tag): ?>")
def resultUrl(self): return Data(url="<?php echo $result->url() ?>")
def pageTags(self): return Data( loop="<?php echo url('articles/tag:' . urlencode($tag)) ?>")
def resultDescription(self): return Data(text="<?php echo $result->description() ?>")
def getTagCloud(self, component, **kwargs): return Data(text='Tag Cloud ' * kwargs.get('count', 10))