On Sun, Jul 29, 2007 at 05:49:54PM -0000, Henrik Lied wrote: > @Forest: I agree, it should be that simple. But let's say you've got a > comment reply plugin. How would we - through a middleware - manage to > intercept our usual comment system, and modify the HTML template > source to fit the plugin? It's cases like these I see the potential > pitfalls of our way of thought. Please, enlighten me if the answer is > simple. :-)
Well, extensibility is tough for exactly that reason. You have to anticipate the ways in which your application might be extended. This is an extremely difficult task, for that simple reason that it is impossible to predict the future. You really don't want to be modifying templates (or any other source files) when a new plugin is installed. What you do want is to have placeholders in your templates where plugins may contribute additional markup that will appear on the page. -Forest -- Forest Bond http://www.alittletooquiet.net
signature.asc
Description: Digital signature

