@jws Indeed. I finally learned how to dump PHP from Grav (which uses Twig) onto the page. And that revealed that a crucial test
$post = isset($<u>POST['data']) ? $</u>POST['data'] : [];
completely fails every time because $_POST does not contain a 'data' value.
Now to find out why the original programmers thought it did.
// @matigo