Exemplo n.º 1
0
Arquivo: builder.py Projeto: balor/hop
def build_html_self_closing_object(object_name, **params):
    return mk_literal(u'<{0}{1} />'.format(
        sstrip(escape(object_name)),
        build_html_params(**params),
    ))
Exemplo n.º 2
0
Arquivo: builder.py Projeto: balor/hop
def build_html_object_close_tag(object_name):
    return mk_literal(u'</{0}>'.format(sstrip(escape(object_name))))
Exemplo n.º 3
0
Arquivo: builder.py Projeto: balor/hop
def build_html_object(object_name, body, **params):
    return mk_literal(u''.join([
        build_html_object_open_tag(object_name, **params),
        escape(body),
        build_html_object_close_tag(object_name),
    ]))
Exemplo n.º 4
0
Arquivo: builder.py Projeto: balor/hop
def build_html_object_open_tag(object_name, **params):
    return mk_literal(u'<{0}{1}>'.format(
        sstrip(escape(object_name)),
        build_html_params(**params),
    ))