#NEWLINE# def do_get_current_language_bidi( parser , token ) : #NEWLINE# #INDENT# "\n    This will store the current language layout in the context.\n\n    Usage::\n\n        {% get_current_language_bidi as bidi %}\n\n    This will fetch the currently active language's layout and\n    put it's value into the ``bidi`` context variable.\n    True indicates right-to-left layout, otherwise left-to-right\n    " #NEWLINE# args = token . contents . split ( ) #NEWLINE# if ( ( len ( args ) != 3 ) or ( args [ 1 ] != 'as' ) ) : #NEWLINE# #INDENT# raise TemplateSyntaxError ( ( "'get_current_language_bidi' requires 'as variable' (got %r)" % args ) ) #NEWLINE# #UNINDENT# return GetCurrentLanguageBidiNode ( args [ 2 ] )