Did you know ... Search Documentation:
Pack app -- README.md

app

Installation

pack_install(app).

Make sure you have already installed SWI-prolog with:

brew install swi-prolog --with-libarchive

Example

:- use_module(library(app)).

:- route('/', index).
:- route('/users', users).

index(_Request):-
  header('Content-Type', 'text/plain'),
  body('Hello World!').

users(_Request):-
  header('Content-Type', 'text/plain'),
  body('Users!').

License

MIT.