Re: [WICG/webcomponents] [templates] A declarative JavaScript templating API (Issue #1069)

vospascal left a comment (WICG/webcomponents#1069)

i was more thinking cant you extend the template literal bindings ``` tagFunction`string text ${expression} string text` ``` this is what is currently but what if you could apply a tagFunction like thing on the expression it self

```$expressionFunction{expression}```  people could do things like ```$dom{expression}``` ```$${expression}``` make there own bindings there expression could keep the reference alive since we already have this. i know this is only js side of things.
there also could be an default for example  ```$${expression}``` where you could just set the value of the expression bit like a proxy or something 

extending template tag to work with expressions would also be an idea but not sure how i would focus on js part first 
since the template literal and expression syntax are familiar for most developers

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/1069#issuecomment-2764485403
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/1069/2764485403@github.com>

Received on Sunday, 30 March 2025 10:10:05 UTC