コード例 #1
0
ファイル: blog.py プロジェクト: JamieS/bloog
def get_html(body, markup_type):
    if markup_type == 'textile':
        from utils.external.textile import textile
        return textile.textile(body)
    return body
コード例 #2
0
 def repl(tmatch):
     if tmatch:  # Assume latin-1.  Will be converted by Bloog.
         return textile.textile(tmatch.group(1),
                                encoding='latin-1',
                                output='latin-1')
コード例 #3
0
ファイル: uploader.py プロジェクト: JamieS/bloog
 def repl(tmatch):
     if tmatch:   # Assume latin-1.  Will be converted by Bloog.
         return textile.textile(tmatch.group(1), 
                                encoding='latin-1', output='latin-1')
コード例 #4
0
ファイル: blog.py プロジェクト: chunchu/bloog
def get_html(body, markup_type):
    if markup_type == 'textile':
        from utils.external.textile import textile
        return textile.textile(body)
    return body