X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=examples%2Fhighlight.psgi;fp=examples%2Fhighlight.psgi;h=244b128efbcb3963fce31c821c4bf144b220cbb2;hb=0a04fa7bd38c8f491b429dc7d8578735ca7ca3f4;hp=0000000000000000000000000000000000000000;hpb=69822fef73720cb201bf9cb7f25ed5ea2c4fa10a;p=public-inbox.git
diff --git a/examples/highlight.psgi b/examples/highlight.psgi
new file mode 100644
index 00000000..244b128e
--- /dev/null
+++ b/examples/highlight.psgi
@@ -0,0 +1,13 @@
+#!/usr/bin/perl -w
+# Copyright (C) 2019 all contributors
+# License: AGPL-3.0+
+#
+# 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(@_) }; }