@register.tag(u'get_available_languages')
def do_get_available_languages(parser, token):
 args = token.contents.split()
 if ((len(args) != 3) or (args[1] != u'as')):
  raise TemplateSyntaxError((u"'get_available_languages' requires 'as variable' (got %r)" % args))
 return GetAvailableLanguagesNode(args[2])

@ register . tag ( u'get_available_languages' ) def do_get_available_languages ( parser , token ) : args = token . contents . split ( ) if ( ( len ( args ) != 3 ) or ( args [ 1 ] != u'as' ) ) : raise TemplateSyntaxError ( ( u"'get_available_languages' requires 'as variable' (got %r)" % args ) ) return GetAvailableLanguagesNode ( args [ 2 ] )
this will store a list of available languages in the context .