Sha256: 5c2799a845ac28b4501ff0e543dba17e7b8bff82f75b94b17c05334312ff1535

Contents?: true

Size: 952 Bytes

Versions: 22

Compression:

Stored size: 952 Bytes

Contents

require 'hanami/helpers/version'
require 'hanami/helpers/html_helper'
require 'hanami/helpers/escape_helper'
require 'hanami/helpers/routing_helper'
require 'hanami/helpers/link_to_helper'
require 'hanami/helpers/form_helper'
require 'hanami/helpers/number_formatting_helper'

# @since 0.1.0
module Hanami
  # View helpers for Ruby applications
  #
  # @since 0.1.0
  module Helpers
    # Override for Module.included
    #
    # It injects all the available helpers.
    #
    # @since 0.1.0
    # @api private
    #
    # @see http://www.ruby-doc.org/core/Module.html#method-i-included
    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
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
hanami-helpers-1.3.3 lib/hanami/helpers.rb
hanami-helpers-1.3.2 lib/hanami/helpers.rb
hanami-helpers-1.3.1 lib/hanami/helpers.rb
hanami-helpers-1.3.0 lib/hanami/helpers.rb
hanami-helpers-1.3.0.beta1 lib/hanami/helpers.rb
hanami-helpers-1.2.2 lib/hanami/helpers.rb
hanami-helpers-1.2.1 lib/hanami/helpers.rb
hanami-helpers-1.2.0 lib/hanami/helpers.rb
hanami-helpers-1.2.0.rc2 lib/hanami/helpers.rb
hanami-helpers-1.1.2 lib/hanami/helpers.rb
hanami-helpers-1.2.0.rc1 lib/hanami/helpers.rb
hanami-helpers-1.2.0.beta2 lib/hanami/helpers.rb
hanami-helpers-1.2.0.beta1 lib/hanami/helpers.rb
hanami-helpers-1.1.1 lib/hanami/helpers.rb
hanami-helpers-1.1.0 lib/hanami/helpers.rb
hanami-helpers-1.1.0.rc1 lib/hanami/helpers.rb
hanami-helpers-1.1.0.beta3 lib/hanami/helpers.rb
hanami-helpers-1.1.0.beta2 lib/hanami/helpers.rb
hanami-helpers-1.1.0.beta1 lib/hanami/helpers.rb
hanami-helpers-1.0.0 lib/hanami/helpers.rb