module Webby::Helpers - webby-0.9.4 Documentation

# module Webby::Helpers

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 )

### Public Class Methods

register( module ) click to toggle source

Register the given module as a helper module for the Webby framework.

    # File lib/webby/helpers.rb, line 21
    def self.register( helper )
      ::Webby::Renderer.__send__( :include, helper )
    end