Example #1
0
File: builder.py Project: 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),
    ))
Example #2
0
File: builder.py Project: balor/hop
def build_html_object_close_tag(object_name):
    return mk_literal(u'</{0}>'.format(sstrip(escape(object_name))))
Example #3
0
File: builder.py Project: 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),
    ]))
Example #4
0
File: builder.py Project: 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),
    ))