File: csaf2html

package info (click to toggle)
libcsaf-perl 0.26-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,280 kB
  • sloc: perl: 7,583; makefile: 2
file content (67 lines) | stat: -rwxr-xr-x 1,472 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/perl

use strict;
use warnings;
use utf8;

use App::CSAF::Renderer;

exit App::CSAF::Renderer->run(@ARGV) unless caller();

1;

__END__
=encoding utf-8

=head1 NAME

csaf2html - Convert CSAF documents in HTML

=head1 SYNOPSIS

    csaf2html --file FILE
    csaf2html [--help|--man|--version]

    Options:
      -f, --file=FILE               Input CSAF document
      -o, --output=FILE             Output filename
      -t, --template=NAME,PATH      Template name or path

      -v, --verbose                 Verbose

          --help                    Brief help message
          --man                     Full documentation
          --version                 Print version

=head1 DESCRIPTION

C<csaf2html> Convert CSAF documents in HTML

=head1 EXAMPLES

Converts the CSAF document and writes the rendered HTML content to STDOUT:

    $ csaf2html -f csaf-document.json

Converts the CSAF document and writes the rendered HTML content to a file:

    $ csaf2html -f csaf-document.json -o csaf-document.html

Use a custom template file (See "Template Toolkit Documentation"):

    $ csaf2html -f csaf-document.json -t my-cool-template.tt2

=head1 SEE ALSO

L<csaf-validator>

=head1 AUTHOR

L<Giuseppe Di Terlizzi|https://metacpan.org/author/gdt>

=head1 COPYRIGHT AND LICENSE

Copyright © 2023-2025 L<Giuseppe Di Terlizzi|https://metacpan.org/author/gdt>

You may use and distribute this module according to the same terms
that Perl is distributed under.