Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "app"

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

Reviews

No reviews. Create the first review!.

Details by download location

VersionSHA1#DownloadsURL
0.1764cad3d7d12b3d7c9ba20e98580362dc891969212https://github.com/prolib/app.git

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.

Contents of pack "app"

Pack contains 5 files holding a total of 1.2K bytes.