예제 #1
0
def get_html(body, markup_type):
    if markup_type == 'textile':
        from external.libs import textile
        return textile.textile(body)
    return body
예제 #2
0
파일: blog.py 프로젝트: mloar/bloog
def get_html(body, markup_type):
    if markup_type == 'textile':
        from external.libs import textile
        return textile.textile(body)
    return body
예제 #3
0
 def repl(tmatch):
     if tmatch:
         return textile.textile(tmatch.group(1))