Efficient, Expressive, and Extensible HTML Templates (Polymer Summit 2017)

  Рет қаралды 23,420

Chrome for Developers

Chrome for Developers

Күн бұрын

Пікірлер: 36
@bgbrunocom
@bgbrunocom 5 жыл бұрын
this simply should be everywhere - I see that simplicity and a lot of work behind - thx Google
@SoulMasterX
@SoulMasterX 7 жыл бұрын
Tagged template literal should be a killer feature that provide unimaginable potential.
@the_real_vdegenne
@the_real_vdegenne 6 жыл бұрын
One half year after this presentation and still no mixin for Polymer. Any head's up ?
@KevinSheppard
@KevinSheppard 7 жыл бұрын
+ve: I can finally do simple expressions in the template instead of writing a function for every little thing. -ve: DX inside an IDE could take a sharp hit... unless IDE makers like Jetbrains see this as a trend and start tweaking their code assistance and syntax highlighting to suit. After seeing it in action I'm a little more optimistic about HTML inside my JavaScript, although I've been running away from it since JSX hit the scene. Please, Polymer Team, make it great!
@g1m0kolis
@g1m0kolis 7 жыл бұрын
Looks very promising! I'm definitely considering using polymer now.
@skewty
@skewty 4 жыл бұрын
Is lit-extended another Google casualty? original seems abandoned and @acce/lit-extended version does not seem to belong to Polymer and hasn't been updated in a while.
@JustinFagnani
@JustinFagnani 3 жыл бұрын
The syntax in lit-extended was just folded into the main lit-html syntax. No casualty.
@ShawnBiddle
@ShawnBiddle 7 жыл бұрын
This was exactly my fear. Now instead of just having built-in functionality of syntax highlighting/completion from my editor I need to use or write an editor plugin to do something that I should get by default because we have to shove a template inside of a string. It's not "just javascript" it's an html template inside a javascript string. You don't get html syntax highlighting inside of a javascript string "for free." I _understand_ the reasoning for these changes but that doesn't change that it's just worse usability.
@jonsmithers5033
@jonsmithers5033 7 жыл бұрын
I'm hoping that an acceptable working around is to manually change the editor's syntax highlighting to html (even though it's editing a js file).
@jonsmithers5033
@jonsmithers5033 7 жыл бұрын
there's an experimental plugin for vs code github.com/mjbvz/vscode-js-template-string-grammar-injection-example
@ShawnBiddle
@ShawnBiddle 7 жыл бұрын
I know that there will be plugins that do this, my point was that there shouldn't be. We shouldn't be writing HTML templates inside a string. It's ridiculous. It's going back to the days of early 2000s PHP. It's like I'm taking crazy pills or devs just aren't old enough to remember that horrorshow. It's begging for files with templates build programatically with tons of concatenation and completely unreadable interpolation. If I'm writing HTML it should be in HTML. If I'm writing CSS it should be in CSS. What a novel concept.
@jonsmithers5033
@jonsmithers5033 7 жыл бұрын
Hm. I can see how a smorgasbord of languages mixed together in a single file can be disastrous. And this templating system does enable that. But there has to be some kind of interplay when your platform combines 3 separate languages (html, css, js). Maybe there will be best practices, e.g. keeping embedded js code to a minimum by referencing js functions defined elsewhere.
@socceroos123
@socceroos123 6 жыл бұрын
@Dark Magician - VIM already handles JS HTML Templates: github.com/Quramy/vim-js-pretty-template - get gud. ;)
@neoskribe8986
@neoskribe8986 7 жыл бұрын
Has polymer 3.0 been abandoned? The github looks dead.
@mariancaikovski8638
@mariancaikovski8638 5 жыл бұрын
Assigning template strings directly to innerHTML is faster than via lit-html. So what improvements does lit-html offer?
@GregorBoxall
@GregorBoxall 7 жыл бұрын
HTML is the common ground between developers (Javascript) and designers (CSS). Putting HTML inside Javascript brings many benefits to the developer but robs the designer of any ability to understand the structure of the resulting document.
@cat-.-
@cat-.- 3 жыл бұрын
Nonsense. Do you also rob the designers ability to understand the ui structure when your building something with swift or Java? Designers don’t design syntactic details of your ui object trees.
@cywalker2047
@cywalker2047 7 жыл бұрын
felt like I was watching an old Ruby On Rails run down on Views
@agentpx
@agentpx 6 жыл бұрын
This is ReactJs + VueJs in one
@kyuwoochoi2887
@kyuwoochoi2887 7 жыл бұрын
Holy! Brilliant!
@GertCuykens
@GertCuykens 7 жыл бұрын
Everytime Justin has a idea the whole polymer team knows their previous work on elements is going down the drain again haha :P I can imagine their faces looking at him as if he was a facebook employee. Trust met that polymer sugar extension thing was added because he was forced too :P
@hzamudio
@hzamudio 7 жыл бұрын
Press 9 key up there
@wanghailei
@wanghailei 6 жыл бұрын
:-( What a pity. This made me finally decided to leave Polymer.
@HermanWillems
@HermanWillems 6 жыл бұрын
Can i ask why? Polymer 3 with Lit-html is a golden combination. Because HTML-Imports will not be there anymore you need some great templating solution inside Javascript. ES6 Template String Literals are perfect solution. Maybe, even better than html-imports and just regular tags.
@NikosKatsikanis
@NikosKatsikanis 5 жыл бұрын
@@HermanWillems why
@koredeaderele1666
@koredeaderele1666 7 жыл бұрын
Smells like React
@jhlagado1
@jhlagado1 6 жыл бұрын
Such a blatant copy of Andrea Giammarchi's hyperHtml library. He did it first and Google pretend that they invented it.
@HashimWarren
@HashimWarren 6 жыл бұрын
he mentions hyperHTML
@cat-.-
@cat-.- 3 жыл бұрын
Lol everyone knows it’s the same as hyper html because they openly mention it and no one is pretending google invented it
@r3d0c
@r3d0c 7 жыл бұрын
all those cringeworthy jokes lol
lit-HTML (Chrome Dev Summit 2017)
29:44
Chrome for Developers
Рет қаралды 47 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 14 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 98 МЛН
Using Web Components in Ionic (Polymer Summit 2017)
27:20
Chrome for Developers
Рет қаралды 59 М.
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 767 М.
Why Templates Sucks and Are Better than JSX
8:33
ThePrimeTime
Рет қаралды 45 М.
Web Components: Just in the Nick of Time (Polymer Summit 2017)
30:20
Chrome for Developers
Рет қаралды 7 М.
Tagged Template Literals
11:11
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 11 М.
VDOM vs lit-html - HTTP203
8:04
Chrome for Developers
Рет қаралды 41 М.
Reacting to Controversial Opinions of Software Engineers
9:18
Fireship
Рет қаралды 2,1 МЛН
ES6 Modules in the Real World (Polymer Summit 2017)
32:48
Chrome for Developers
Рет қаралды 22 М.
Modern Lit tutorial
27:05
Jad Joubran
Рет қаралды 13 М.