@register.tag<EOL>def social_widget_render(parser, token):
bits = token.split_contents()<EOL>tag_name = bits[<NUM_LIT:0>]<EOL>if len(bits) < <NUM_LIT:2>:<EOL><INDENT>raise TemplateSyntaxError("<STR_LIT>" %<EOL>tag_name)<EOL><DEDENT>args = []<EOL>kwargs = {}<EOL>bits = bits[<NUM_LIT:1>:]<EOL>if len(bits):<EOL><INDENT>for bit in bits:<EOL><INDENT>match = kwarg_re.match(bit)<EOL>if not match:<EOL><INDENT>raise TemplateSyntaxError("<STR_LIT>" %<EOL>tag_name)<EOL><DEDENT>name, value = match.groups()<EOL>if name:<EOL><INDENT>name = name.replace('<STR_LIT:->', '<STR_LIT:_>')<EOL>kwargs[name] = parser.compile_filter(value)<EOL><DEDENT>else:<EOL><INDENT>args.append(parser.compile_filter(value))<EOL><DEDENT><DEDENT><DEDENT>return SocialWidgetNode(args, kwargs)<EOL>
Renders the selected social widget. You can specify optional settings
    that will be passed  to widget template.

    Sample usage:
    {% social_widget_render widget_template ke1=val1 key2=val2 %}

    For example to render Twitter follow button you can use code like this:
    {% social_widget_render 'twitter/follow_button.html' username="ev" %}