[Koha-devel] Improving Koha Templating

dcook at prosentient.com.au dcook at prosentient.com.au
Thu Jun 11 01:13:41 CEST 2020


Hi all,

 

I was looking at a conversation between Martin and Owen about Martin's
accessibility work and Owen's upgrade to Bootstrap 4 work, and I'm wondering
if this would be a good opportunity to use Template::Toolkit's WRAPPER
directive:
http://template-toolkit.org/docs/manual/Directives.html#section_WRAPPER

 

Rather than using INCLUDE for headers and footers in each OPAC template, we
could handle all that in a WRAPPER. I've used the WRAPPER directive in other
projects, and it makes things much simpler. 

 

I'm assuming that the "main content" (for Martin's accessibility work)
should be whatever is wrapped by the WRAPPER, although perhaps I don't 100%
understand what is required there. 

 

Even if it's not useful for Martin, I imagine it could make things easier
for Owen when working on the Bootstrap 4 upgrade? 

 

The WRAPPER directive should reduce boilerplate, which should make it easier
to make whole of Koha changes.

 

David Cook

Systems Librarian

Prosentient Systems

72/330 Wattle St

Ultimo, NSW 2007

Australia

 

Office: 02 9212 0899

Online: 02 8005 0595

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20200611/3a7115b7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 484 bytes
Desc: not available
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20200611/3a7115b7/attachment.sig>


More information about the Koha-devel mailing list