#NEWLINE# def url_for( self , resource , **values ) : #NEWLINE# #INDENT# 'Generates a URL to the given resource.\n\n        Works like :func:`flask.url_for`.' #NEWLINE# endpoint = self . endpoint #NEWLINE# if self . blueprint : #NEWLINE# #INDENT# endpoint = '{0}.{1}' . format ( self . blueprint . name , endpoint ) #NEWLINE# #UNINDENT# return url_for ( endpoint , ** values )