@register.render_tag
def dashboard_column(context, token):
 column_index = int(token.split_contents()[1])
 output = []
 for tag in settings.DASHBOARD_TAGS[column_index]:
  t = Template((u'{%% load %s %%}{%% %s %%}' % tuple(tag.split(u'.'))))
  output.append(t.render(context))
 return u''.join(output)

@ register . render_tag def dashboard_column ( context , token ) : column_index = int ( token . split_contents ( ) [ 1 ] ) output = [ ] for tag in settings . DASHBOARD_TAGS [ column_index ] : t = Template ( ( u'{%% load %s %%}{%% %s %%}' % tuple ( tag . split ( u'.' ) ) ) ) output . append ( t . render ( context ) ) return u'' . join ( output )
takes an index for retrieving the sequence of template tags from mezzanine .