Minimal fuss rack server hooks.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
lib
LICENSE
README.md
Rakefile
serveable.gemspec

README.md

Serveable

Serveable simplifies creating a Rack mountable site. It contains a Site module and an Item module. These can be mixed into classes that expose the correct interface to turn them into easy Rack-fodder.

See example/simple.rb for a basic implementation.

That interface you speak of...

A Site must implement the following:

  • #each(&block), which enumerates Item type objects.

An Item must implement the following:

  • #contents, that returns the contents;
  • #url, that returns the full url to serve at.