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