No commit activity in last 3 years
No release in over 3 years
A collection of helpers I wanted for sinatra, thought I'd share
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

RatPack¶ ↑

Collection of helpers for sinatra mainly for links, css, js, images, and form stuff. Most of this was stolen/modified from merb. Much love to the merb-core team. Peace.

What’s included¶ ↑

Forms¶ ↑

  • text_field

  • password_field

  • hidden_field

  • password_field

  • check_box

  • radio_button

  • radio_group - same as above but takes an array of names

  • text_area

  • label

  • select

  • button

  • submit

Routing helpers¶ ↑

  • subdomains - takes tld length as an arg

Html Helpers¶ ↑

  • link_to

  • js_link - only accepts one file name

  • css_link - only accepts one file name

  • partial - specify template parser via :template param, defaults to erb looks for partials in a views/partials

  • tag

  • open_tag

  • close_tag

  • self_closing_tag

Coming Soon¶ ↑

Need to figure out how to detect rendering engine

  • form

  • fieldset

  • better partial

Copyright © 2009 brianthecoder. See LICENSE for details.