RubyGems Navigation menu

synfeld 0.0.7

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).

Gemfile:
= クリップボードにコピー コピー完了!

インストール:
=

バージョン履歴:

  1. 0.0.7 - February 05, 2015 (22KB)
  2. 0.0.6 - September 06, 2012 (21KB)
  3. 0.0.5 - June 26, 2012 (21KB)
  4. 0.0.4 - October 11, 2009 (30KB)

Runtime依存関係 (3):

haml ~> 3.1.6
rack ~> 1.4.1
rack-mount ~> 0.8.3

所有者:

作者:

  • Steven Swerling

SHA 256チェックサム:

2cfcf9aa87062fd4866ce46298bb1f1f259a6794d09227fd648333b9317b407b

累計ダウンロード数 12,398

このバージョンのみ 3,233

ライセンス:

N/A

必要なRubyのバージョン: >= 0

リンク: