> On 4 Apr 2024, at 17:03, fo...@univ-mlv.fr wrote: > > > It's for PHP and PHP templates are far more complex that Java string > templates, for example, PHP allows {if} ... {else}. >
It is not (only) for PHP. It’s a general approach, and it’s recognised as the recommended approach for modern HTML processors; I think people writing HTML template processors are well familiar with this article (e.g. it's the one used by the HTML templates in Go’s standard library). — Ron