| Did you know ... | Search Documentation: |
| Packs (add-ons) for SWI-Prolog |
| Title: | Conveniences for running on dotCloud |
|---|---|
| Rating: | Not rated. Create the first rating! |
| Latest version: | 0.0.2 |
| SHA1 sum: | 4e6b0eaeda2a859619923f5bf02df497431c34dc |
| Author: | Michael Hendricks <michael@ndrix.org> |
| Maintainer: | Michael Hendricks <michael@ndrix.org> |
| Packager: | Michael Hendricks <michael@ndrix.org> |
| Home page: | http://packs.ndrix.com/dotcloud/index.html |
| Download URL: | http://packs.ndrix.com/dotcloud/dotcloud-0.0.2.tgz |
No reviews. Create the first review!.
| Version | SHA1 | #Downloads | URL |
|---|---|---|---|
| 0.0.2 | 4e6b0eaeda2a859619923f5bf02df497431c34dc | 26 | http://packs.ndrix.com/dotcloud/dotcloud-0.0.2.tgz |
| 0.0.1 | d6e4dc0fdb5e5037476c8683335181d59ec1f566 | 6 | http://packs.ndrix.com/dotcloud/dotcloud-0.0.1.tgz |
Inside a dotCloud run file.
#!/path/to/swipl -s
:- use_module(library(dotcloud)).
:- http_handler(/, hello, []).
main(_) :-
server(www).
hello(_Request) :-
format('Content-type: text/plain~n~n'),
format('Hello Prolog, from dotCloud!~n').
A convenience library for working with SWI-Prolog on dotCloud.
Using SWI-Prolog 6.3 or later:
?- pack_install(dotcloud).
This module uses semantic versioning.
Source code available and pull requests accepted at http://github.com/mndrix/dotcloud
Pack contains 4 files holding a total of 2.7K bytes.