Module: Hanami::Helpers

Defined in:
lib/hanami/helpers.rb,
lib/hanami/helpers/version.rb,
lib/hanami/helpers/form_helper.rb,
lib/hanami/helpers/html_helper.rb,
lib/hanami/helpers/escape_helper.rb,
lib/hanami/helpers/link_to_helper.rb,
lib/hanami/helpers/routing_helper.rb,
lib/hanami/helpers/form_helper/values.rb,
lib/hanami/helpers/form_helper/html_node.rb,
lib/hanami/helpers/html_helper/html_node.rb,
lib/hanami/helpers/html_helper/text_node.rb,
lib/hanami/helpers/form_helper/form_builder.rb,
lib/hanami/helpers/html_helper/html_builder.rb,
lib/hanami/helpers/number_formatting_helper.rb,
lib/hanami/helpers/html_helper/html_fragment.rb,
lib/hanami/helpers/html_helper/empty_html_node.rb

Overview

View helpers for Ruby applications

Since:

  • 0.1.0

Defined Under Namespace

Modules: EscapeHelper, FormHelper, HtmlHelper, LinkToHelper, NumberFormattingHelper, RoutingHelper

Constant Summary collapse

VERSION =

Define version

Since:

  • 0.1.0

'1.3.3'.freeze

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Override for Module.included

It injects all the available helpers.



23
24
25
26
27
28
29
30
31
32
# File 'lib/hanami/helpers.rb', line 23

def self.included(base)
  base.class_eval do
    include Hanami::Helpers::HtmlHelper
    include Hanami::Helpers::EscapeHelper
    include Hanami::Helpers::RoutingHelper
    include Hanami::Helpers::LinkToHelper
    include Hanami::Helpers::FormHelper
    include Hanami::Helpers::NumberFormattingHelper
  end
end