In order to process the HTTP requests/responses, I needed some predicates for processing Strings. So I made the "pc_text_processing" module.
Using this modules gives you various common clauses to manipulate texts.
If you find mistakes, or want to collaborate fixing some problems, join this project!
Enjoy!
Pillow files works as a CGI scripts!
You can use Ciao Prolog libraries for making HTML dynamic pages. Pillow libraries is perfect for doing this job... and now works with Pillowcase!
URL that finish with ".pl" are pillow files... it executes automatically and send the results to the client! :)
Remember:
You'll need a writable HTML/PL home directory(configure it in pc_config.pl file!).
Happy Coding! :)
In the latest development, you can request a page and you get it! :)
Still is very simple HTTP(don't ask for tooooooo much yet :P)...
Start the server loading the module pillowcase and use dance_pillowcase predicate!
Here is an example using ciaosh application:
?- use_module(pillowcase).
yes
?- dance_pillowcase.
You can use any web browser and see [http//localhost:8080].
Happy coding!
Prolog is fast! :)
PillowCase is almost working!
Use start_server predicate to see it working. :) You can test it with telnet or a web browser.
Remember to configure the server editing the pc_config.pl file.
I'm starting this project!
You are welcome to collaborate. :)
Enjoy!