Revision 1 - 2009-11-30 at 04:59:28

This article is really just a reflection of the e-mail I sent out a few days ago about extensions.

Extensions provide a way to hook into and augment MojoMojo's functionality without modifying core code. These are the kinds of extensions I envision:

  • Additional page actions. This one would be tricky to do right, and it has a lot of potential to do more harm than good. Just figured I'd write it down so we can come back to it later if we want.
  • Extending existing page actions. This could use the same mechanism as adding a new page action, but it has more disadvantages than simply adding actions. Also, how would be manage multiple extensions extending the same action?
  • Additional syntax. The MojoMojo formatter facility provides this already.
  • Special Pages.
  • The ability to embed other Catalyst applications into MojoMojo, and delegate certain namespaces to them.

I think a good extension facility could probably use a dependency system, so that some extensions could provide generic functionality for others.

My tags:
Popular tags:
Powered by Catalyst