Sha256: b85d8eb4765c61295860f0a06049608899cd1c1d4fddd27ee2ba2ee2bf71a361
Contents?: true
Size: 1.83 KB
Versions: 1
Compression:
Stored size: 1.83 KB
Contents
require 'padrino-core/support_lite' unless defined?(SupportLite) require 'cgi' require 'i18n' require 'enumerator' require 'active_support/core_ext/string/conversions' # to_date require 'active_support/core_ext/float/rounding' # round require 'active_support/option_merger' # with_options require 'active_support/core_ext/object/with_options' # with_options require 'active_support/inflector' # humanize FileSet.glob_require('padrino-helpers/**/*.rb', __FILE__) # Load our locales I18n.load_path += Dir["#{File.dirname(__FILE__)}/padrino-helpers/locale/*.yml"] module Padrino ## # This component provides a great deal 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. # module Helpers ## # Register these helpers: # # Padrino::Helpers::OutputHelpers # Padrino::Helpers::TagHelpers # Padrino::Helpers::AssetTagHelpers # Padrino::Helpers::FormHelpers # Padrino::Helpers::FormatHelpers # Padrino::Helpers::RenderHelpers # Padrino::Helpers::NumberHelpers # # for Padrino::Application # class << self 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 end alias :included :registered end end # Helpers end # Padrino
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
padrino-helpers-0.10.2 | lib/padrino-helpers.rb |