RubyGems Navigation menu

synfeld 0.0.6

Synfeld is a web application framework that does practically nothing. Synfeld is little more than a small wrapper for Rack::Mount (see http://github.com/josh/rack-mount). If you want a web framework that is mostly just going to serve up json blobs, and occasionally serve up some simple content (eg. help files) and media, Synfeld makes that easy. The sample app below shows pretty much everything there is to know about synfeld, in particular: * How to define routes. * Simple rendering of erb, haml, html, json, and static files. * In the case of erb and haml, passing variables into the template is demonstrated. * A dynamic action where the status code, headers, and body are created 'manually' (/my/special/route below) * A simple way of creating format sensitive routes (/alphabet.html vs. /alphabet.json) * The erb demo link also demos the rendering of a partial (not visible in the code below, you have to look at the template file examples/public/erb_files/erb_test.erb).

Versions:

  1. 0.0.6 - September 6, 2012 (21 KB)
  2. 0.0.5 - September 26, 2009 (21 KB)
  3. 0.0.4 - October 11, 2009 (30 KB)

Authors:

  • Steven Swerling

Owners:

F8eef1c0a6a3cd6934260842333afa86

Total downloads 3,017

For this version 836

Required Ruby Version: None

Licenses:

N/A

Gemfile:
gem 'synfeld', '~> 0.0.6' = Copy to clipboard Copied!

install:
gem install synfeld = Copy to clipboard Copied!

Links: