Re: [RFC Idea] Short echo tag with automatic HTML escaping (<?~ ... ?>)
| From: | Andrey Andreev | Date: | Tue, 23 Dec 2025 10:36:52 +0000 |
| Subject: | Re: [RFC Idea] Short echo tag with automatic HTML escaping (<?~ ... ?>) | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-129679@lists.php.net to get a copy of this message | ||
Hi Rob,
On Tue, Dec 23, 2025 at 12:14 PM Rob Landers <rob@bottled.codes> wrote:
> Which template engines are context aware? The only ones I'm aware of is my
> own and Latte (which take a similar approach but is quite architecturally
> different).
>
Sorry, I don't have a direct answer to your question. I haven't written
front-end code for a loong time and haven't needed such tools recently
enough to know.
I just meant to say that only a templating engine (or something that would
parse the full output) can be context-aware. Although in many cases, where
a template engine provides helpers such as those that generate lists or
forms, those helpers still have sufficient context.
Cheers,
Andrey.