You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Jacob Parker 783081d030 Merge pull request #1 from luqmana/master 11 years ago
bin dweb 0.5: handlers, fixes, tidying. 11 years ago
pub/style dweb 0.5: handlers, fixes, tidying. 11 years ago
src Fixed 404 error on index pages. Also changed to REQUEST_URI instead of SCRIPT_URL. 11 years ago
srv dweb 0.5: handlers, fixes, tidying. 11 years ago
.gitignore Added readme. .htaccess and config.d are also now ignored in git instead samples are provided to be copied over and modified. 11 years ago
README.md Added readme. .htaccess and config.d are also now ignored in git instead samples are provided to be copied over and modified. 11 years ago
htaccess-sample Added readme. .htaccess and config.d are also now ignored in git instead samples are provided to be copied over and modified. 11 years ago

README.md

dweb - A simple website written in D

dweb is a simple website framework based off the werc software.

Its principles are:

  • Database free, uses files and directories instead.
  • Written using the D programming language.
  • Minimize tedious work: eg., no need to ever write HTML, use markdown instead.
  • Very minimalist yet extensible codebase. Handlers for special things should be easy to add.

It was created because werc was annoying to deploy on UW Computer Science Club's Apache setup and because Not Invented Here.

Install Guide

You will need:

  • An HTTP server with CGI support.
  • The D compiler.

Extract the contents into the location you want to serve webpages from. Create $DWEB_ROOT/.htaccess and $DWEB_ROOT/src/config.d by copying the provided sample files. Then edit the following files:

  • $DWEB_ROOT/.htaccess: make the paths work for your setup.
  • $DWEB_ROOT/src/config.d: change these strings as necessary.
  • $DWEB_ROOT/src/web.d: this is the main web code.
  • $DWEB_ROOT/pub/: static content goes here.
  • $DWEB_ROOT/srv/: directories, markdown webpages etc. go in here.
  • $DWEB_ROOT/bin/: custom handlers go here.

Run build in $DWEB_ROOT/src to recompile the website software.

Source

You can get the source code on github or by running

 git clone git://github.com/j3parker/dweb.git

Contact

For questions, suggestions, bug reports and contributing patches email j3parker

License

Public domain.

Credits

The idea and css stolen from werc. This page itself also plagarised.

Thanks to John Gruber for the Markdown.pl script.