News for hackers. Stuff that matters.
Re:Custom Elements Coming to WebKit by Touche on Wednesday March 02, 2016 @01:40PM (#11211960)
Thanks, are they able to render custom elements that have shadow DOM, including the styles?
Re:Custom Elements Coming to WebKit by phpnode on Wednesday March 02, 2016 @02:10PM (#11212180)
no, it's a way to share the same templating syntax on the client and server but isn't a full server side rendering solution. It's pretty fast though, just about the fastest templating engine out there last time I checked.
Re:Custom Elements Coming to WebKit by kawera on Wednesday March 02, 2016 @02:34PM (#11212367)
Using the CLI, can templates import other html bits (classic header/content/footer for example) ?
Re:Custom Elements Coming to WebKit by phpnode on Thursday March 03, 2016 @06:59AM (#11216296)
yes, you can do something like `HTMLing.registerElement('foo-bar', {})` and then when you use `<foo-bar />` in another template it will render it. I should note that I'm not maintaining this library very well because I've mostly switched to React, but it does work.