Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Prepare a structure for plugins to register with

#3

I believe I need to execute any code that plugins will need to hook into before the Rails initialize block in config/environment.rb (at the top of the file).

Ansuz::PluginManager will have an attr_accessor :plugins, :frontend_views, :backend_views, and each Ansuz plugin will need to register itself.

A plugin will provide modules. Each Frontend module will need an associated Backend module. For instance, a ContentSection will have a base Frontend module that just renders the ContentSection on the page, and an associated Backend module that allows one to modify the content.

A plugin's registration in init.rb could look something like this:

Ansuz::PluginManager.register_plugin(Ansuz::Plugins::JAdams::ContentSection)

...where Ansuz::Plugins::JAdams::ContentSection defines its Frontend modules and their related Backend modules.

Reported by knewter (at gmail) · August 24th, 2008 @ 11:04 AM

State: resolved
Milestone: none
Assigned to: knewter (at gmail) knewter (at gmail)

Activity

  1. knewter (at gmail)
    knewter (at gmail)
    • State changed from new to resolved
    • Assigned user set to knewter (at gmail)

    August 24th, 2008 @ 05:09 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.