diff options
author | David Lawrence <dkl@mozilla.com> | 2016-02-26 18:57:55 +0100 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2016-02-26 18:57:55 +0100 |
commit | 9b6ec1f545da1cc4088ddf9cc117747954e58e65 (patch) | |
tree | 6cc3eb342a740b795052e587756f6c33438b772a /xt/extensions/QA/template/en/default/qa/README | |
parent | 6f70920f2d2bb038a371e3cb3debff44f7001fa8 (diff) | |
download | bugzilla-9b6ec1f545da1cc4088ddf9cc117747954e58e65.tar.gz bugzilla-9b6ec1f545da1cc4088ddf9cc117747954e58e65.tar.xz |
Bug 1069799 - move the QA repository into the main repository
r=LpSolit
Diffstat (limited to 'xt/extensions/QA/template/en/default/qa/README')
-rw-r--r-- | xt/extensions/QA/template/en/default/qa/README | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/xt/extensions/QA/template/en/default/qa/README b/xt/extensions/QA/template/en/default/qa/README new file mode 100644 index 000000000..604d00cfe --- /dev/null +++ b/xt/extensions/QA/template/en/default/qa/README @@ -0,0 +1,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. |