@register.tag
def include_block(parser, token):
 tokens = token.split_contents()
 try:
  tag_name = tokens.pop(0)
  block_var_token = tokens.pop(0)
 except IndexError:
  raise template.TemplateSyntaxError((u'%r tag requires at least one argument' % tag_name))
 block_var = parser.compile_filter(block_var_token)
 if (tokens and (tokens[0] == u'with')):
  tokens.pop(0)
  extra_context = token_kwargs(tokens, parser)
 else:
  extra_context = None
 use_parent_context = True
 if (tokens and (tokens[0] == u'only')):
  tokens.pop(0)
  use_parent_context = False
 if tokens:
  raise template.TemplateSyntaxError((u'Unexpected argument to %r tag: %r' % (tag_name, tokens[0])))
 return IncludeBlockNode(block_var, extra_context, use_parent_context)

@ register . tag def include_block ( parser , token ) : tokens = token . split_contents ( ) try : tag_name = tokens . pop ( 0 ) block_var_token = tokens . pop ( 0 ) except IndexError : raise template . TemplateSyntaxError ( ( u'%r tag requires at least one argument' % tag_name ) ) block_var = parser . compile_filter ( block_var_token ) if ( tokens and ( tokens [ 0 ] == u'with' ) ) : tokens . pop ( 0 ) extra_context = token_kwargs ( tokens , parser ) else : extra_context = None use_parent_context = True if ( tokens and ( tokens [ 0 ] == u'only' ) ) : tokens . pop ( 0 ) use_parent_context = False if tokens : raise template . TemplateSyntaxError ( ( u'Unexpected argument to %r tag: %r' % ( tag_name , tokens [ 0 ] ) ) ) return IncludeBlockNode ( block_var , extra_context , use_parent_context )
render the passed item of streamfield content .