[External] : Re: String template interpolation as a two steps process

Ron Pressler ron.pressler at oracle.com
Thu Apr 4 16:10:46 UTC 2024



> On 4 Apr 2024, at 17:03, forax at 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 


More information about the amber-spec-observers mailing list