def create_global_jinja_loader(self): default_loader = super(IndicoFlask, self).create_global_jinja_loader() customization_dir = config.CUSTOMIZATION_DIR if not customization_dir: return default_loader return CustomizationLoader( default_loader, os.path.join(customization_dir, 'templates'), config.CUSTOMIZATION_DEBUG)
def create_global_jinja_loader(self): default_loader = super().create_global_jinja_loader() # use an empty list if there's no global customization dir so we can # add directories of plugins later once they are available customization_dir = os.path.join( config.CUSTOMIZATION_DIR, 'templates') if config.CUSTOMIZATION_DIR else [] return CustomizationLoader(default_loader, customization_dir, config.CUSTOMIZATION_DEBUG)
def create_global_jinja_loader(self): default_loader = super(IndicoFlask, self).create_global_jinja_loader() cfg = Config.getInstance() customization_dir = cfg.getCustomizationDir() if not customization_dir: return default_loader return CustomizationLoader( default_loader, os.path.join(customization_dir, 'templates'), cfg.getCustomizationDebug())