]> Sergey Matveev's repositories - public-inbox.git/blobdiff - examples/highlight.psgi
highlight: initial wrapper and PSGI service
[public-inbox.git] / examples / highlight.psgi
diff --git a/examples/highlight.psgi b/examples/highlight.psgi
new file mode 100644 (file)
index 0000000..244b128
--- /dev/null
@@ -0,0 +1,13 @@
+#!/usr/bin/perl -w
+# Copyright (C) 2019 all contributors <meta@public-inbox.org>
+# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
+#
+# Usage: plackup [OPTIONS] /path/to/this/file
+# A startup command for development which monitors changes:
+#      plackup -I lib -o 127.0.0.1 -R lib -r examples/highlight.psgi
+use strict;
+use warnings;
+use PublicInbox::WwwHighlight;
+use Plack::Builder;
+my $hl = PublicInbox::WwwHighlight->new;
+builder { sub { $hl->call(@_) }; }