config['pylons.app_globals'].mako_lookup = TemplateLookup(directories=paths
    ['templates'], error_handler=handle_mako_error, module_directory=os.
    path.join(app_conf['cache_dir'], 'templates'), input_encoding='utf-8',
    default_filters=['escape'], imports=['from webhelpers.html import escape'])
Mark string as safe in Mako