Re: [WICG/webcomponents] [DOM Parts] Add new declarative syntax and update iterative proposal (PR #1023)

@tbondwilkinson:

> The choice of {{}} is not the standard for all templating languages, but it's close enough that we can use it as a placeholder for now before we survey more developers.

I like the direction this is going.   If I'm understanding correctly, the most important feedback should come from the server-side generating frameworks.  If that is correct, I would encourage, if possible, surveying developers not just from the node-centric world, but include perhaps some representatives from [beyond](https://w3techs.com/technologies/overview/programming_language), a small slice of which may be using XSLT to generate the HTML.  It seems that the key will be how easy it would be for early adopter users initially to extend the template syntax to support the desired output.  Asp.net razor pages have support for custom tag helpers/ attribute helpers, which would allow for syntax that is defined in an elegant, semantic way (could even use xslt tags if so desired), which would emit the needed markers, similar to what it sounds like lit would support.  XSLT supports user defined functions which could also generate the desired output, I believe.

So it seems to me looking for syntax that matches the existing authoring / templating languages on the server side may not be as important as their ability to flexibly emit what is needed, but I might be missing something.  I suspect it may not matter all that match if {{}} is used versus ${}, for example, echoing what @justinfagnani  said.

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

Message ID: <WICG/webcomponents/pull/1023/c1664675213@github.com>

Received on Thursday, 3 August 2023 21:35:17 UTC