def two_param_shortcut(parser, token):
    """
    Shortcut to transmogrify thumbnail
    """
    bits = smart_split(token.contents)
    tagname = bits.next()
    try:
        imageurl = bits.next()
        param1 = bits.next()
        param2 = bits.next()
        param2 = param2.lstrip("#")
    except StopIteration:
        raise template.TemplateSyntaxError("%r tag requires at least the image url" % tagname)

    return MogrifyNode(imageurl, [(tagname, param1, param2), ])
def two_param_shortcut ( parser , token ) : bits = smart_split ( token . contents ) tagname = bits . next ( ) try : imageurl = bits . next ( ) param1 = bits . next ( ) param2 = bits . next ( ) param2 = param2 . lstrip ( "#" ) except StopIteration : raise template . TemplateSyntaxError ( "%r tag requires at least the image url" % tagname ) return MogrifyNode ( imageurl , [ ( tagname , param1 , param2 ) , ] )
Shortcut to transmogrify thumbnail