| Did you know ... | Search Documentation: |
| Packs (add-ons) for SWI-Prolog |
| Title: | Prolog Application Server |
|---|---|
| Rating: | Not rated. Create the first rating! |
| Latest version: | 0.1 |
| SHA1 sum: | 764cad3d7d12b3d7c9ba20e98580362dc8919692 |
| Author: | Lance Pollard <lancejpollard@gmail.com> |
| Home page: | https://github.com/prolib/app |
No reviews. Create the first review!.
| Version | SHA1 | #Downloads | URL |
|---|---|---|---|
| 0.1 | 764cad3d7d12b3d7c9ba20e98580362dc8919692 | 12 | https://github.com/prolib/app.git |
pack_install(app).
Make sure you have already installed SWI-prolog with:
brew install swi-prolog --with-libarchive
:- 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!').
MIT.
Pack contains 5 files holding a total of 1.2K bytes.