Sha256: 41e5a60af565d618c3b570c03edf87ae8758d0ffb81af0e96f491908bd02e3c2

Contents?: true

Size: 731 Bytes

Versions: 22

Compression:

Stored size: 731 Bytes

Contents

require Webby.libpath(*%w[webby renderer])

module Webby

# The Helpers module is used to register helper modules that provide extra
# functionality to the Webby renderer. The most notable example is the
# UrlHelpers module that provides methods to link to another page in a
# Webby webiste.
#
# Helpers are registered with the Webby framework by calling:
#
#    Webby::Helpers.register( MyHelper )
#
module Helpers

  # call-seq:
  #    Helpers.register( module )
  #
  # Register the given _module_ as a helper module for the Webby framework.
  #
  def self.register( helper )
    ::Webby::Renderer.__send__( :include, helper )
  end

end  # module Helper
end  # module Webby

Webby.require_all_libs_relative_to(__FILE__)

# EOF

Version data entries

22 entries across 22 versions & 9 rubygems

Version Path
Shazburg-webby-0.9.0 lib/webby/helpers.rb
TwP-webby-0.9.0 lib/webby/helpers.rb
TwP-webby-0.9.1 lib/webby/helpers.rb
TwP-webby-0.9.2 lib/webby/helpers.rb
TwP-webby-0.9.3 lib/webby/helpers.rb
TwP-webby-0.9.4.1 lib/webby/helpers.rb
TwP-webby-0.9.4 lib/webby/helpers.rb
blowmage-webby-0.9.4.1 lib/webby/helpers.rb
dysinger-webby-0.9.4 lib/webby/helpers.rb
francois-webby-0.9.4.1 lib/webby/helpers.rb
giraffesoft-webby-0.9.5 lib/webby/helpers.rb
mikker-webby-0.9.4 lib/webby/helpers.rb
jamesgolick-webby-0.9.5 lib/webby/helpers.rb
webby-0.8.3 lib/webby/helpers.rb
webby-0.8.4 lib/webby/helpers.rb
webby-0.9.1 lib/webby/helpers.rb
webby-0.9.0 lib/webby/helpers.rb
webby-0.9.3 lib/webby/helpers.rb
webby-0.9.3-x86-mswin32 lib/webby/helpers.rb
webby-0.9.2 lib/webby/helpers.rb