News for hackers. Stuff that matters.
Re:Templating in HTML by vidaj on Wednesday October 05, 2022 @07:05AM (#33093827)
I just tested out how to use template with slots, and it was as you said quite simple.

Made a simple gist: https://gist.github.com/vidaj/b27f1140a8ae711c7df2372c4b5cfe... It supports using templates as slot content and updating only the slots you want. Add in some event listeners, and you got basic binding support.

There are no comments on this comment yet.