예제 #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