Module: Padrino::Helpers

Defined in:
lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers.rb,
lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/tag_helpers.rb,
lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/form_helpers.rb,
lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/format_helpers.rb,
lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/number_helpers.rb,
lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/output_helpers.rb,
lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/render_helpers.rb,
lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/asset_tag_helpers.rb,
lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/breadcrumb_helpers.rb,
lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/translation_helpers.rb,
lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/output_helpers/erb_handler.rb,
lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/output_helpers/haml_handler.rb,
lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/output_helpers/slim_handler.rb,
lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/output_helpers/abstract_handler.rb,
lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/form_builder/abstract_form_builder.rb,
lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/form_builder/standard_form_builder.rb

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, Breadcrumbs, FormBuilder, FormHelpers, FormatHelpers, NumberHelpers, OutputHelpers, RenderHelpers, TagHelpers, TranslationHelpers Classes: Breadcrumb

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object Also known as: included

Examples:

Register the helper module

require 'padrino-helpers'
class Padrino::Application
  register Padrino::Helpers
end

Parameters:

  • app (Sinatra::Application)

    The specified padrino application



45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers.rb', line 45

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
  app.helpers Padrino::Helpers::Breadcrumbs
end