Hi, all!

This is a tiny step, but an important one: using libfossil to serve data
over CGI (not that libfossil knows anything at all about CGI):

http://fossil.wanderinghorse.net/repos/libfossil/cgidemo/index.cgi

it's not much, but the contents of the JSON data show us some info pulled
from a fossil repo. Perhaps the most interesting part is that the CGI app
is entirely written in a scripting language, not C: that CGI script runs a
script interpreter which knows small bit about how to use Fossil, and the
script dispatches to a function based on the path of the page, e.g.:

http://libfossil.local/th1ish.cgi/foo/bar/baz (note the different
Content-Type)
or:
http://fossil.wanderinghorse.net/repos/libfossil/cgidemo/index.cgi/snap
or:
http://fossil.wanderinghorse.net/repos/libfossil/cgidemo/index.cgi/cookie
or:
http://fossil.wanderinghorse.net/repos/libfossil/cgidemo/index.cgi/noSuchPage

It's in its infancy stages, but the proof of concept is now there.

The majority of the implementation is demonstrated in this script:

http://fossil.wanderinghorse.net/repos/libfossil/index.cgi/finfo?name=th1ish/cgi-init.th1ish

Happy Fossiling!

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to