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

> These days, I'm highly focused on declarative patterns that don't require JS for initial render. I know we want to move the ball forward for templating, but I'd still prefer to move it forward on the HTML side rather than in JS. 

Agreed on this point. While I think this is common enough that it probably is worth baking into the platform, I do feel like I'd rather see us make strides to do HTML building in HTML.

On a separate point, I wonder how much we would want to lean on existing Template parsing functions, like `parseHTMLUnsafe` or `setHTMLUnsafe`. While potentially not as feature rich as we might want, it probably isn't hard or terribly contentious to bake in a cleaner interface for these functions (even if that means making it called `unsafeHTML`).

If this should be very different from those functions, it might be worth calling out in the beginning of the proposal, and in what ways. I worry about the number of ways we have to create DOM from string templates, and it's worth calling out how these might be different (rather than adding to an existing one).

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

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

Received on Friday, 16 August 2024 18:07:46 UTC