[pmwiki-users] Ingredients . . .

christian.ridderstrom at gmail.com christian.ridderstrom at gmail.com
Sun Feb 5 07:45:57 CST 2006


On Sat, 4 Feb 2006, Ben Wilson wrote:

> That said, I've scripted a few recipes and tinkered with a few more.
> I've noticed certain bits of code are used repeatedly throughout
> various recipes. I would invite the community to cull through the code
> and find which routines are more commonly used and may be worth
> pulling out of individual recipes and turned into "ingredients." I
> think so doing would reduce the size of code, improve the authoring of
> new code, and produce more maintainable recipes overall.

This sounds like an excellent idea to me... How about calling the page

	Cookbook.CodeIngredients

This is one very popular ingredient IMHO:

	$pagename = ???()
	$group = PageVar('$Group', $pagename);

Note that I don't remember it exactly, but I think you know which one I 
mean ;-)

/C


-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr






More information about the pmwiki-users mailing list