Пример #1
0
 def to_html(self, blogmode='full'):
     params={
         'dpath':    string_param(""),
         'blogmode': string_param(blogmode),
         'title':    string_param(self.title),
         'permaurl': string_param(self.permaurl()),
         }
     return content_transform(self.title, fix_blog_links(self.text), 'body', params=params)
Пример #2
0
 def to_html(self):
     dpath = self.path
     dpath = dpath[:dpath.rfind('.')] + ".html"
     return content_transform(self.path, fix_blog_links(self.text), params={'dpath':string_param(dpath)})