def __init__(self, *args, **kwargs): Plugin.__init__(self, *args, **kwargs) config = self.get_config() self.source_dir = config.get('source_dir', 'asset_sources/js/') self.output_dir = config.get('output_dir', 'assets/js/') self.name_prefix = config.get('name_prefix', '') self.keep_bang_comments = config.get('keep_bang_comments', 'False') self.included_assets = list( comma_delimited(config.get('included_assets', ''))) self.excluded_assets = list( comma_delimited(config.get('excluded_assets', ''))) self.watcher = None self.run_watcher = False
def included_assets(self): """List of glob patterns matching filenames of included assets. Overrides both excluded_assets and the default excluded patterns. """ config = self.open_config() return list(comma_delimited(config.get('site.included_assets', '')))
def excluded_assets(self): """List of glob patterns matching filenames of excluded assets. Combines with default EXCLUDED_ASSETS. """ config = self.open_config() return list(comma_delimited(config.get('site.excluded_assets', '')))