]> Sergey Matveev's repositories - public-inbox.git/blob - examples/highlight.psgi
www: preload: load all encodings at startup
[public-inbox.git] / examples / highlight.psgi
1 #!/usr/bin/perl -w
2 # Copyright (C) 2019-2020 all contributors <meta@public-inbox.org>
3 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
4 #
5 # Usage: plackup [OPTIONS] /path/to/this/file
6 # A startup command for development which monitors changes:
7 #       plackup -I lib -o 127.0.0.1 -R lib -r examples/highlight.psgi
8 #
9 # .psgi paths may also be passed to public-inbox-httpd(1) for
10 # production deployments:
11 #       public-inbox-httpd [OPTIONS] /path/to/examples/highlight.psgi
12 use strict;
13 use warnings;
14 use PublicInbox::WwwHighlight;
15 use Plack::Builder;
16 my $hl = PublicInbox::WwwHighlight->new;
17 builder { sub { $hl->call(@_) }; }