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 very simple routing library not only for the http. Like many other things in the Janet language, it is based on 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 that are called 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