[−][src]Function adblock::resources::resource_assembler::assemble_web_accessible_resources
pub fn assemble_web_accessible_resources(
web_accessible_resource_dir: &Path,
redirect_engine_path: &Path
) -> Vec<Resource>
Builds a Vec
of Resource
s from the specified paths on the filesystem:
-
web_accessible_resource_dir
: A folder full of resource files -
redirect_engine_path
: A file in the format of uBlock Origin'sredirect-engine.js
containing an index of the resources inweb_accessible_resource_dir
-
scriptlets_path
: A file in the format of uBlock Origin'sscriptlets.js
containing templatable scriptlet files for use in cosmetic filtering
The resulting resources can be serialized into JSON using serde_json
.