Re: [PHP-DEV] [RFC] [Discussion] Native Markup Expressions

[email protected] (Morgan) Thu, 16 Jul 2026 15:34:27 +1200
Newsgroups php.internals
Message-ID <[email protected]>
On 2026-07-15 11:36, Liam Hammett wrote:
> 
> It proposes a native syntax for HTML fragments as first-class PHP expressions,
> akin to how the frontend community has adopted JSX, with composition and
> escape-by-default output:
> 
Heh, just today by coincidence I was pointed toward https://jsx.lol/ - 
which, despite the name is more about React in general.

I'm more partial to Edmond Dantes's suggestion of providing parser hooks 
so that different markup expression syntaxes can be added via extension, 
rather than locking in one that happened to be popular at one time.