Good Place library: Trolley

The Trolley is the name of the one part of the Good Place series, dedicated to the ethical Trolley problem.

The Trolley is the general and elementary routing library for the http. Like many other things in the Janet language, it uses the table with routes definition. Keys are strings with the path description, e.g. "/products/:id" , values could be any legal Janet value, but mostly those are functions which you call on the match with parameters gathered in matching.

When you construct the routes, you can use them to match the route from the HTTP (or any other) request, and resolve the routes from the matching function and parameters.

Package: trolley Good Place 2021 All rights rejected