Friday, 28 February 2003

blojsom 1.4 ... plugins, aggregation, and categories

Well, development is winding down on blojsom 1.4 and there are some nifty new features. Most notably, the blojsom plugin API. This has just been a lot of fun to put together and there will be a few core plugins that will make it into the distribution. Namely, the macro expansion, href hyperlink, and simple search plugins.

We're really trying to provide a lot of flexibility with aspects of blojsom like the plugin API. The basic idea with the plugins is that you register your plugin classes under a unique name and then define a plugin-chain that gets executed per request. So, you can configure the macro-expansion plugin to execute before the href-hyperlink plugin (or vice versa). Mark had a good suggestion which was to allow you to override the plugin chain per request by say adding "?plugins=href-hperlink,macro-expansion" to the URL. So, I added the line of code to support that and it works like a champ.

Onto the aggregation support in blojsom. In blojsom, we treat the default category ("/") special in that you can choose to aggregate entries from all or some of your blog categories. By default, blojsom will aggregate all categories so then when a user hits your blog, they'll see entries from all the categories as opposed to having to click through each individual category. As with a lot of blojsom, this is configurable so that you can aggregate say only your "/java" category. Again, Mark brought up a good suggestion which was to be able to support aggregation on a per-flavor basis. So, in this way, you could define "rss.blojsom-default-category-mapping=/java" such that for the RSS flavor, only the "/java" category gets aggregated. Again, an easy update to the code.

And finally, categories. The category meta-data support in blojsom is just ... well, just cool. On a per-category basis, you can define arbitrary properties for that category. If you look at this blog, you already see it in "action" in that the categories have short descriptions as opposed to simply using the directory name for the category. What you want to add to the meta-data is up to you. Again, the idea is flexibility. The only thing I didn't think about was per-flavor per-category meta-data support. This would mean that you could have an rss.blojsom.properties file in one of your categories and if the user requested the RSS flavor, that file would be used to read in the meta-data for that requested category. Gotta check in the code to support that tonight.

And finally, Erik, in today's MTV-fed society, it's more proper to refer to yourself as not being a "Font Beotch". And someone has to be "URL Aggregator Beotch" or else how would we ever come across such gems as Live Nude Cats!

Posted by at 9:42 AM in blojsom ... all blojsom
« First  « Prev   1 2 3 4 5   Next »  Last »
« February »
SunMonTueWedThuFriSat
      1
2345678
9101112131415
16171819202122
232425262728