In my previous post, I asked how to show the requested URL in a 404 handler. I had not noticed the use of paramterized modules in this project.
First my controller:
-module(training_world_controller, [Req]).
-compile(export_all).
%aka 404
lost('GET',[]) ->
{ok, [ { original_path, Req:path() } ] }.
Then the template file:
<html>
<head>
<title>File not found</title>
</head>
<body>
The requested path {{ original_path }} was not found.
</body>
</html>