-<:
-use utf8;
-use strict;
-use warnings;
-no warnings 'qw'; # to quote or not to quote, that is the question
-use open IO => ':utf8';
-
-our $VERSION = '1.0';
-
-$header{content_type} = 'text/html; charset=utf-8';
-
-:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-
-<head>
-<title>digraph cheat sheet</title>
-<meta http-equiv="content-type" content="utf-8">
-<link rel="stylesheet" type="text/css" media="all" href="digraphs.css">
-<link rel="vcs" type="git" href="git://dev.shiar.nl/sheet">
-</head>
-
-<body>
-<h1>RFC-1345 Digraphs</h1>
-
-<p>i^k in <a href="/">Vim</a>.
-Also see <a href="/unicode">common digraphs</a>.</p>
-
-<p style="font-size:72%">Unofficial <span class="Xz">proposals</span>
-are available as <a href="/digraphs.vim">ex commands</a>.</p>
+<(common.inc.plp)><:
+
+my $mode = $Request || 'vim';
+my $include = 'digraphs' . ($mode ne 'vim' && "-$mode");
+my $cmp = exists $get{cmp} ? ($get{cmp} // 1) : !!$Request;
+
+my $di = eval { Data($include) } || {};
+warn "error in $include: ", @{$@} if ref $@;
+
+Html({
+ title => "$mode digraph cheat sheet",
+ version => '1.4',
+ description => $di->{description} // [
+ "Complete table of digraph characters from",
+ ($di->{title} // $mode) . ".",
+ ],
+ keywords => [@{ $di->{keywords} // [] }, qw'
+ digraph mnemonic compose composition pair
+ character char glyph table unicode vim
+ '],
+ stylesheet => [qw'light'],
+ data => ["data/$include.json"],
+});
+
+%{$di} or Abort(
+ "Requested digraphs <q>$mode</q> not available",
+ '404 request not found',
+);