Sha256: 5a4c88240df44e6e3610035525437cfd389ce1ed0fb6882f3da7ab9b8b94ac71

Contents?: true

Size: 937 Bytes

Versions: 5

Compression:

Stored size: 937 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'

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

5 entries across 5 versions & 1 rubygems

Version Path
hanami-helpers-1.0.0.beta1 lib/hanami/helpers.rb
hanami-helpers-0.5.1 lib/hanami/helpers.rb
hanami-helpers-0.5.0 lib/hanami/helpers.rb
hanami-helpers-0.4.0 lib/hanami/helpers.rb
hanami-helpers-0.3.0 lib/hanami/helpers.rb