1[%# This Source Code Form is subject to the terms of the Mozilla Public 2 # License, v. 2.0. If a copy of the MPL was not distributed with this 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 4 # 5 # This Source Code Form is "Incompatible With Secondary Licenses", as 6 # defined by the Mozilla Public License, v. 2.0. 7 #%] 8 9Normal templates go in this directory. You can load them in your 10code like this: 11 12use B[% %]ugzilla::Error; 13my $template = B[% %]ugzilla->template; 14$template->process('[% name FILTER lower %]/some-template.html.tmpl') 15 or ThrowTemplateError($template->error()); 16 17That would be how to load a file called <kbd>some-template.html.tmpl</kbd> that 18was in this directory. 19 20Note that you have to be careful that the full path of your template 21never conflicts with a template that exists in [% terms.Bugzilla %] or in 22another extension, or your template might override that template. That's why 23we created this directory called '[% name FILTER lower %]' for you, so you 24can put your templates in here to help avoid conflicts. 25