View Extender
=============

In your views put
    <%= extension_point 'my_extension_point_name' %>

Plugins, etc can then add to this view via:

    # specify a string to put in the output
    ViewExtender.register('my_extension_point', "STRING TO OUTPUT")

    # make a call to the render method at the specified point
    ViewExtender.register('my_extension_point', :partial => 'partial_file')

    # dynamically build a render call
    ViewExtender.register('my_extension_point') do
      :partial => Configuration.feature_x_enabled? ? 'feature_x' : 'no_feature_x'
    end

There can be any number of extensions at a single point.  They will be
displayed in the order they are added.

Using in your rails project
===========================

In your environment.rb
    config.gem 'xtoddx-view_extender', :lib => 'view_extender', :source => 'http://gems.github.com'

View Extender
=============

In your views put
    <%= extension_point 'my_extension_point_name' %>

Plugins, etc can then add to this view via:

    # specify a string to put in the output
    ViewExtender.register('my_extension_point', "STRING TO OUTPUT")

    # make a call to the render method at the specified point
    ViewExtender.register('my_extension_point', :partial => 'partial_file')

    # dynamically build a render call
    ViewExtender.register('my_extension_point') do
      :partial => Configuration.feature_x_enabled? ? 'feature_x' : 'no_feature_x'
    end

There can be any number of extensions at a single point.  They will be
displayed in the order they are added.

Using in your rails project
===========================

In your environment.rb

    config.gem 'xtoddx-view_extender', :lib => 'view_extender', :source => 'http://gems.github.com'

Update readme to make code blocks correctly in markdown (round 2)
Update readme to make code blocks correctly in markdown (round 2)
