Module: Padrino::Helpers

### Home Classes Methods

### In Files

- lib/padrino-helpers.rb
- lib/padrino-helpers/asset_tag_helpers.rb
- lib/padrino-helpers/form_builder/abstract_form_builder.rb
- lib/padrino-helpers/form_builder/deprecated_builder_methods.rb
- lib/padrino-helpers/form_builder/standard_form_builder.rb
- lib/padrino-helpers/form_helpers.rb
- lib/padrino-helpers/form_helpers/errors.rb
- lib/padrino-helpers/form_helpers/options.rb
- lib/padrino-helpers/form_helpers/security.rb
- lib/padrino-helpers/number_helpers.rb
- lib/padrino-helpers/output_helpers.rb
- lib/padrino-helpers/output_helpers/abstract_handler.rb
- lib/padrino-helpers/output_helpers/erb_handler.rb
- lib/padrino-helpers/output_helpers/haml_handler.rb
- lib/padrino-helpers/output_helpers/slim_handler.rb
- lib/padrino-helpers/render_helpers.rb
- lib/padrino-helpers/tag_helpers.rb
- lib/padrino-helpers/translation_helpers.rb

### Namespace

- MODULE Padrino::Helpers::AssetTagHelpers
- MODULE Padrino::Helpers::FormBuilder
- MODULE Padrino::Helpers::FormHelpers
- MODULE Padrino::Helpers::NumberHelpers
- MODULE Padrino::Helpers::OutputHelpers
- MODULE Padrino::Helpers::RenderHelpers
- MODULE Padrino::Helpers::TagHelpers
- MODULE Padrino::Helpers::TranslationHelpers

### Methods

- ::included
- ::registered

### Files

- README.rdoc

### Class/Module Index

Quicksearch

- Padrino
- Padrino::Helpers
- Padrino::Helpers::AssetTagHelpers
- Padrino::Helpers::FormBuilder
- Padrino::Helpers::FormBuilder::AbstractFormBuilder
- Padrino::Helpers::FormBuilder::DeprecatedBuilderMethods
- Padrino::Helpers::FormBuilder::StandardFormBuilder
- Padrino::Helpers::FormHelpers
- Padrino::Helpers::FormHelpers::Errors
- Padrino::Helpers::FormHelpers::Options
- Padrino::Helpers::FormHelpers::Security
- Padrino::Helpers::NumberHelpers
- Padrino::Helpers::OutputHelpers
- Padrino::Helpers::OutputHelpers::AbstractHandler
- Padrino::Helpers::OutputHelpers::ErbHandler
- Padrino::Helpers::OutputHelpers::HamlHandler
- Padrino::Helpers::OutputHelpers::SinatraCurrentEngine
- Padrino::Helpers::OutputHelpers::SlimHandler
- Padrino::Helpers::RenderHelpers
- Padrino::Helpers::TagHelpers
- Padrino::Helpers::TranslationHelpers
- Padrino::Rendering
- Padrino::Rendering::ClassMethods
- Padrino::Rendering::ErubisTemplate
- Padrino::Rendering::HamlTemplate
- Padrino::Rendering::InstanceMethods
- Padrino::Rendering::SafeBufferEnhancer
- Padrino::Rendering::SafeEruby
- Padrino::Rendering::SafeTemplate
- Padrino::Rendering::SlimTemplate
- Padrino::Rendering::TemplateNotFound
- Haml
- Haml::Helpers
- Haml::Util

No matching classes.

# Padrino::Helpers

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.

### Public Class Methods

included(base) click to toggle source

    # File lib/padrino-helpers.rb, line 50
    def included(base)
      base.send :include, Padrino::Helpers::OutputHelpers
      base.send :include, Padrino::Helpers::TagHelpers
      base.send :include, Padrino::Helpers::AssetTagHelpers
      base.send :include, Padrino::Helpers::FormHelpers
      base.send :include, Padrino::Helpers::FormatHelpers
      base.send :include, Padrino::Helpers::RenderHelpers
      base.send :include, Padrino::Helpers::NumberHelpers
      base.send :include, Padrino::Helpers::TranslationHelpers
    end

registered(app) click to toggle source

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::Application
      register Padrino::Helpers
    end

    # File lib/padrino-helpers.rb, line 44
    def registered(app)
      app.register Padrino::Rendering
      app.set :default_builder, 'StandardFormBuilder'
      included(app)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.