From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 354E61F453 for ; Wed, 24 Apr 2019 23:02:14 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/5] cgit + WwwHighlight.pm integration Date: Wed, 24 Apr 2019 23:02:09 +0000 Message-Id: <20190424230214.2378-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: cgit-wwwhighlight-filter.lua can benefit cgit installations by allowing them to avoid spawning a new process for about-filter and source-filter in cgitrc. Instead of spawning highlight(1) or similar every time a cgit filter is invoked, we can have a long-lived PSGI server running WwwHighlight.pm(*) and rely on lua-http to access the server over loopback. WwwHighlight.pm is also updated to support the same linkification logic we use for emails. (*) see examples/highlight.psgi Eric Wong (5): wwwhighlight: do linkification, too examples/cgit-commit-filter: remove unused variable wwwhighlight: deal with no-op highlight examples: cgit filter for use with WwwHighlight examples/cgit-commit-filter.lua: some doc updates MANIFEST | 1 + examples/cgit-commit-filter.lua | 10 ++++- examples/cgit-wwwhighlight-filter.lua | 57 +++++++++++++++++++++++++++ lib/PublicInbox/WwwHighlight.pm | 11 +++++- 4 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 examples/cgit-wwwhighlight-filter.lua