@register.simple_tag()<EOL>def render_form(form, exclude=None, **kwargs):
if hasattr(form, "<STR_LIT:Meta>") and hasattr(form.Meta, "<STR_LIT>"):<EOL><INDENT>return render_layout_form(form, getattr(form.Meta, "<STR_LIT>"), **kwargs)<EOL><DEDENT>if exclude:<EOL><INDENT>exclude = exclude.split("<STR_LIT:U+002C>")<EOL>for field in exclude:<EOL><INDENT>form.fields.pop(field)<EOL><DEDENT><DEDENT>return mark_safe("<STR_LIT>".join([<EOL>render_field(field, **kwargs) for field in form<EOL>]))<EOL>
Render an entire form with Semantic UI wrappers for each field

    Args:
            form (form): Django Form
            exclude (string): exclude fields by name, separated by commas
            kwargs (dict): other attributes will be passed to fields

    Returns:
            string: HTML of Django Form fields with Semantic UI wrappers