#NEWLINE# @ register . tag #NEWLINE# def firstof( parser , token ) : #NEWLINE# #INDENT# '\n    This is the future version of `firstof` with auto-escaping.\n\n    This is equivalent to::\n\n        {% if var1 %}\n            {{ var1 }}\n        {% elif var2 %}\n            {{ var2 }}\n        {% elif var3 %}\n            {{ var3 }}\n        {% endif %}\n\n    If you want to disable auto-escaping of variables you can use::\n\n        {% autoescape off %}\n            {% firstof var1 var2 var3 "<strong>fallback value</strong>" %}\n        {% autoescape %}\n\n    Or if only some variables should be escaped, you can use::\n\n        {% firstof var1 var2|safe var3 "<strong>fallback value</strong>"|safe %}\n\n    ' #NEWLINE# return defaulttags . firstof ( parser , token , escape = True )