Prepare a structure for plugins to register with
Reported by knewter (at gmail) | August 24th, 2008 @ 11:04 AM
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.
Comments and changes to this ticket
-
knewter (at gmail) August 24th, 2008 @ 05:09 PM
- State changed from new to resolved
- Assigned user set to knewter (at gmail)
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Project for ansuz: Open source Rails-based content management that works.