Module: Padrino::Helpers

Overview

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.

Defined Under Namespace

Modules: AssetTagHelpers, FormBuilder, FormHelpers, FormatHelpers, NumberHelpers, OutputHelpers, RenderHelpers, TagHelpers, TranslationHelpers

Class Method Summary

Class Method Details

.registered(app) ⇒ Object

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

Examples:

Register the helper module
require 'padrino-helpers'
class Padrino::Application
  register Padrino::Helpers
end

Parameters:

  • app (Sinatra::Application) — The specified Padrino application.

© 2010–2020 Padrino
Licensed under the MIT License.
https://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Helpers