Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/twilson63/sinatra-formhelpers

Suite of FormHelpers for Sinatra
https://github.com/twilson63/sinatra-formhelpers

Last synced: about 2 months ago
JSON representation

Suite of FormHelpers for Sinatra

Awesome Lists containing this project

README

        

= sinatra-formhelpers

sinatra-formhelpers is a suite of form helpers for sinatra.

link "google", "http://www.google.com" # Returns "google"
label :person, :first_name # Returns "First Name"
text :person, :first_name # Returns ""

There are also helpers for (area, submit, image, radio, checkbox, and select)

To install it, run:

sudo gem install twilson63-sinatra-formhelpers -s http://gems.github.com

To include it in a Sinatra application, write:

require 'rubygems'
require 'sinatra/formhelpers'

If you're subclassing Sinatra::Base, then you need to call
helpers manually:

class MyApp < Sinatra::Base
helpers Sinatra::FormHelpers
# ...
end


== Copyright

Copyright (c) 2009 twilson63. See LICENSE for details.