Did you know ... Search Documentation:
Pack simple_web -- prolog/sw/sw_route_handling.pl
PublicShow source

Make a route predicate in the project handle the route and write out the response to current out

 init_routes is det
find all simple_web:routes and setup http_handlers for them.
 url_for(+Handler, ?URL) is semidet
Find the URL for a given handler name, also can be used with static files: url_for("static('js/main.js')") ! url_for(+Handler, ?URL, +Options) is semidet. Find the URL for a given handler name
Arguments:
Options- Is a list of options. Only supported option is absolute, which returns an absolute URL

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 url_for(Arg1, Arg2, Arg3)