This component provides a variety of view helpers related to html markup generation. There are helpers for generating tags, forms, links, images, and more. Most of the basic methods should be very familiar to anyone who has used rails view helpers.
Registers these helpers into your application:
Padrino::Helpers::OutputHelpers Padrino::Helpers::TagHelpers Padrino::Helpers::AssetTagHelpers Padrino::Helpers::FormHelpers Padrino::Helpers::FormatHelpers Padrino::Helpers::RenderHelpers Padrino::Helpers::NumberHelpers
@param [Sinatra::Application] app
The specified padrino application
@example Register the helper module
require 'padrino-helpers' class Padrino::Appliocation register Padrino::Helpers end
# File lib/padrino-helpers.rb, line 44 def registered(app) app.set :default_builder, 'StandardFormBuilder' app.helpers Padrino::Helpers::OutputHelpers app.helpers Padrino::Helpers::TagHelpers app.helpers Padrino::Helpers::AssetTagHelpers app.helpers Padrino::Helpers::FormHelpers app.helpers Padrino::Helpers::FormatHelpers app.helpers Padrino::Helpers::RenderHelpers app.helpers Padrino::Helpers::NumberHelpers app.helpers Padrino::Helpers::TranslationHelpers end
Generated with the Darkfish Rdoc Generator 2.