RubyGems Navigation menu

swerling-synfeld 0.0.4

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.4 - August 10, 2014 (21.5 KB)
  2. 0.0.2 - August 10, 2014 (10.5 KB)
  3. 0.0.1 - August 10, 2014 (8.5 KB)

Runtime 依赖 (2):

rack >= 0

Development 依赖 (1):

bones >= 2.5.1

作者:

  • Steven Swerling

SHA 256 校验和:

12d793de12fe7a85380cb0c5a6a3533307300e988180f0a6ae7638b6620ed8df

下载总量 7,784

这个版本 3,289

许可:

需要的 Ruby 版本: >= 0

链接: