summaryrefslogtreecommitdiffstats
path: root/xt/extensions/QA/template/en/default/qa/README
blob: 604d00cfeb0ccb3b23dcb7a4afafb097e07c199d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Normal templates go in this directory. You can load them in your
code like this:

use Bugzilla::Error;
my $template = Bugzilla->template;
$template->process('qa/some-template.html.tmpl')
  or ThrowTemplateError($template->error());

That would be how to load a file called some-template.html.tmpl that
was in this directory.

Note that you have to be careful that the full path of your template
never conflicts with a template that exists in Bugzilla or in
another extension, or your template might override that template. That's why
we created this directory called 'qa' for you, so you
can put your templates in here to help avoid conflicts.