Questions on writing plugin for merb
Tim Perrett
hello at timperrett.com
Tue Dec 18 19:16:24 EST 2007
Hey all,
I am looking to write a plugin for merb and have a few queries about
how to best go about it. I have a few questions (sorry if some are
very merb newbie ones):
- It seems all the plugins are gems; I can just add dependencies (my
plugin will require soap4r) as per any usual gem spec?
- If I want my plugin to add some new generate functionality? Is this
possible? If so, are there any examples? I dont seem to be able to
find any :(
- The plugin needs to go into the gem dir right? So anything within
the gem dir is automatically included on the app load path?
- If there were some view helpers in the gem, is there way of forcing
them to be included like in rails where you include them into the
ActionView module so they are instantly available in views?
It also seems that in version 0.4.2, doing "merb -P my_plugin" doesnt
work outside a merb app? Is this a bug?
Thanks for any pointers!!
Cheers
Tim
More information about the Merb-devel
mailing list