Re: Would the site benefit from using a templating library?
| From: | Christoph M. Becker | Date: | Sat, 02 Jul 2022 10:23:30 +0000 |
| Subject: | Re: Would the site benefit from using a templating library? | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-30226@lists.php.net to get a copy of this message | ||
On 02.07.2022 at 08:59, me@mikevanriel.com wrote:
> I apologize if I am a bit too blunt in asking (blame it on being Dutch and all) but I was
> fiddling with web-php’s styling and I was wondering if maintenance on the website would benefit
> from using a (stand-alone) templating solution, such as Twig. I tried to find whether this was
> suggested before and could find no reference of it.
There is a general issue with this: we have a hard time to rely on
third-party packages, to avoid endorsing one over others. This topic
has been discussed many times over the years, and rarely went anywhere.
However, we use a simple template engine in web-bugs[1] which was
contributed by Peter Kokot some years ago; I never had a closer look at
it, but maybe it could be used for web-php, too.
[1] <https://github.com/php/web-bugs/blob/master/docs/templates.md>
--
Christoph M. Becker