News for hackers. Stuff that matters.
Re:Microsoft Edge and Web Components by jfoutz on Thursday July 16, 2015 @01:13AM (#9895573)
It lets you bundle up the html, css and javascript in one place. Imagine a video player with css buttons and a video section. you include the component source then put in a <my-player/> tag somewhere. That's the gist anyway. kinda sorta like client side taglibs like you'd see in jsp pages.
Re:Microsoft Edge and Web Components by douche on Thursday July 16, 2015 @01:38AM (#9895622)
So it's like an ASP.NET MVC partial view, with css and javascript defined in the view cshtml file instead of in external files?
Re:Microsoft Edge and Web Components by jfoutz on Thursday July 16, 2015 @02:10AM (#9895685)
not so familiar with ASP.NET, but yeah that sounds about right. The key is it runs in the browser itself, rather than being a bundle that's compiled and moved around at build or run time.

you take all your standard html5 stuff, bundle it in one file, and serve that to any client that wants a video player. You can, of course, play minification games or whatever to reduce the number of files - but the pure form is, one include == one component.

Re:Microsoft Edge and Web Components by itaysk on Thursday July 16, 2015 @03:38AM (#9895855)
I was just going to write it's like ASP.NET Web Forms User Controls. Only that was server-driven.