Getting more data from inside a template

Max Kanat-Alexander mkanat at bugzilla.org
Thu Nov 12 06:44:46 UTC 2009


On 10/19/2009 09:24 AM, Gervase Markham wrote:
> In a template, can I "break out" and start instantiating Bugzilla::Foo
> objects, or am I limited to what the controlling .cgi chooses to pass
> me? (I know EVAL_PERL isn't set in Bugzilla, so that route won't work.)

	There isn't really much way to do that, at least not for objects you
don't already have some sort of access to.

	In 3.6 there's going to be a template-before_process hook that allows
extensions to add additional variables into $vars before any template is
loaded, so that would help a bit for extensions.

	-Max
-- 
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.



More information about the developers mailing list