Lintian::Reporting::ResourceManager(3) | Debian Package Checker | Lintian::Reporting::ResourceManager(3) |
Lintian::Reporting::ResourceManager -- A simple resource manager for html_reports
use Lintian::Reporting::ResourceManager; my $resMan = Lintian::Reporting::ResourceManager->new( 'html_dir' => 'path/to/HTML-root', ); # Copy the resource $resMan->install_resource('path/to/my-image.png', { install_method => 'copy'} ); # Move the resource $resMan->install_resource('path/to/generated-styles.css'); print encode_utf8('Image: ' . $resMan->resource_url('my-image.png'), "\n"); print encode_utf8('CSS: ' . $resMan->resource_url('generated-styles.css'), "\n");
A simple resource manager for Lintian's reporting tool, html_reports.
OPTS is a key-value list, which must contain the key "html_dir" set to the root of the HTML path. It is beneath this path that all resources will be installed
Note that the basename of RESOURCE must be unique between all resources installed. See "resource_url(RESOURCE_NAME)".
If OPT is given, it must be a hashref with 0 or more of the following keys (and values).
If this is passed, RESOURCE must be a basename (i.e. without any slashes).
Originally written by Niels Thykier <niels@thykier.net> for Lintian.
2023-02-05 | Lintian v2.116.3 |