[dokuwiki] Re: [patch] Find files in the namespace

  • From: Mike Frysinger <vapier@xxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 11 Sep 2010 13:18:52 -0400

On Saturday, September 11, 2010 03:03:53 Andreas Gohr wrote:
> > Sometimes in templates - you want to adjust the layout based on files in
> > the namespace.
> > 
> > For example - have sidebars per namespace, and only show a sidebar if
> > there is one. For that, I needed to add something like this into
> > ./inc/template.php
> 
> Yes many templates use similar functions and include them in their own
> template code. I'm not sure why this function should be added to the
> core.

because of the exact scenario you just described ?  instead of forcing 
everyone to come up with their own weird variant that could possibly have 
their own bugs, doesnt it make more sense to have one version that everyone 
can use and is widely tested/deployed ?
-mike

Other related posts: