示例#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))