A new request with request id 11771 has been created by koha-devel-request@lists.koha-community.org. Short info on the request is :

Title : Koha-devel Digest, Vol 196, Issue 10
Category :
Description :
Send Koha-devel mailing list submissions to
    koha-devel@lists.koha-community.org

To subscribe or unsubscribe via the World Wide Web, visit
    https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
or, via email, send a message with subject or body 'help' to
    koha-devel-request@lists.koha-community.org

You can reach the person managing the list at
    koha-devel-owner@lists.koha-community.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Koha-devel digest..."


Today's Topics:

1. Template::Toolkit WRAPPER to reduce template boilerplate
(dcook@prosentient.com.au)


----------------------------------------------------------------------

Message: 1
Date: Mon, 14 Mar 2022 17:06:16 +1100
From: <dcook@prosentient.com.au>
To: "'Koha Devel'" <koha-devel@lists.koha-community.org>
Subject: [Koha-devel] Template::Toolkit WRAPPER to reduce template
    boilerplate
Message-ID: <021401d83769$9e6d0bf0$db4723d0$@prosentient.com.au>
Content-Type: text/plain; charset="utf-8"

Hi all,



I've opened up an issue to use Template::Toolkit's WRAPPER directive to
reduce template boilerplate:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30289



I've been using it for 7 years on a non-Koha project and it's very handy.



And I whipped out a draft wrapper today and attached it to Bugzilla, because
I was working on some custom OPAC pages and I was just getting tired of
trying to figure out what a generic Koha page should look like in terms of
HTML, CSS, JS, includes, etc.



By using 1 wrapper, I can just do it once, and not worry about it. I can
just focus on the actual content for all my particular page-specific
templates.



Anyway, have a look and let me know what you think. For a first step, we
wouldn't even have to replace every OPAC page. We could just start with
opac-main.tt and then refactor as we go along.



David Cook

Senior Software Engineer

Prosentient Systems

Suite 7.03

6a Glen St

Milsons Point NSW 2061

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/20220314/fcd81269/attachment-0001.htm>

------------------------------

Subject: Digest Footer

_______________________________________________
Koha-devel mailing list
Koha-devel@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : https://www.koha-community.org/
git : https://git.koha-community.org/
bugs : https://bugs.koha-community.org/


------------------------------

End of Koha-devel Digest, Vol 196, Issue 10
*******************************************


NOTE: You are receiving this mail because, the Requester/Technician wanted you to get notified on this request creation.