#NEWLINE# def __init__( self , templates_path , generator ) : #NEWLINE# #INDENT# self . env = Environment ( loader = FileSystemLoader ( templates_path ) , autoescape = False ) #NEWLINE# config = generator . config #NEWLINE# self . env . globals . update ( generator = generator , site = config . site , config = config . config , author = config . author , comment = config . comment , theme = config . theme . vars , g = g , pages = generator . pages , static_url = static_url , url_for = url_for ) #NEWLINE# catsup_filter_path = os . path . join ( g . catsup_path , 'templates' , 'filters.py' ) #NEWLINE# theme_filter_path = os . path . join ( g . theme . path , 'filters.py' ) #NEWLINE# self . load_filters_from_pyfile ( catsup_filter_path ) #NEWLINE# self . load_filters_from_pyfile ( theme_filter_path ) #NEWLINE# self . rendered_permalinks = [ ]