Welcome to the HWF home
Intro
First of all, HWF is a Free Software licensed under the GPL (v2+) license. Although its motivation was not so noble, I hope it can help you in some way.
HWF stands to Hammer Web Framework, this name was inspired in a momorable phrase of Ken Thompson:
When in doubt, use brute force
And it is actually easy to use the brute force when using a Hammer =P.
HWF is a very simple web framework that just help you to define callbacks and associate them with an url. Its first motivation was showing for the world that any programming language is ready for the web 2.0 stuff. It started as a joke with it and to help me to learn C, GLib and GObject related stuff.
Getting it
Currently there is no formal release of HWF, so the only way to get it is checking it out directly from our git repository with the following command:
$ git clone http://git.alfaiati.net/hwf.git
Quick Start
So, after getting it, you can follow the usual way for compiling an autotools based program, like this:
$ ./configure && make && make install
Remember to change the --prefix parameter when configuring to change the installation directory. If everything worked, you can simply create a new site, compile and run it with the following commands:
$ hwf -n mynewsite $ cd mynewsite $ gcc -o mynewsite main.c `pkg-config --libs --cflags hwf-0.1` $ ./mynewsite
After that, just launch your favorite prefered web browser and go to the address printed out by the ./mynewsite command. If you want to change port number of this quick example, open the main.c file and change it in the main function.
