@@ -237,53 +237,17 @@ printWidth: 80
237237=====================================input======================================
238238import { LitElement , html } from '@polymer/lit-element';
239239
240- class MyElement extends LitElement {
241- static get properties () {
242- return {
243- mood: { type: String }
244- };
245- }
246-
247- constructor() {
248- super ();
249- this .mood = ' happy' ;
250- }
251-
252- render() {
253- return html \`
254- <style
255-
256-
257- >
258- .mood { color : green ; }
259- </style
260-
261-
262-
263- >
264-
265- Web Components are <span
266-
267-
268- class = " mood" >\${
269- this .mood
270-
271- } </span
272-
273- >!
274- \`;
275- }
276- }
277-
278- customElements.define('my-element', MyElement);
279-
280- const someHtml1 = html\`<div > hello \${ world } </div >\`;
281- const someHtml2 = /* HTML */ \`<div > hello \${ world } </div >\`;
240+ const someHtml3 = /* HTML */ \` <div class = " \${foo}" >foo</div >\` ;
241+ const someHtml4 = /* HTML */ \` <div class =\${bar}>bar</div>\`;
282242
283243html\`\`
284244
285245html\`<my-element obj =\${obj}></my-element>\`;
286246
247+ html\`<div class = " \${foo}" >foo</div >\` ;
248+
249+ html\` <div class =\${bar}>bar</div>\`
250+
287251html\` <\${Footer} >footer content<// > \`
288252
289253html\` <div /> \`
@@ -341,40 +305,11 @@ html\`<div style=" color : red;
341305=====================================output=====================================
342306import { LitElement , html } from "@polymer/lit-element";
343307
344- class MyElement extends LitElement {
345- static get properties () {
346- return {
347- mood: { type: String },
348- };
349- }
350-
351- constructor() {
352- super ();
353- this .mood = " happy" ;
354- }
355-
356- render() {
357- return html \`
358- <style >
359- .mood {
360- color : green ;
361- }
362- </style >
363-
364- Web Components are
365- <span class = " mood" >\${ this .mood } </span >
366- !
367- \` ;
368- }
369- }
370-
371- customElements.define("my-element", MyElement);
372-
373- const someHtml1 = html\`
374- <div >hello \${ world } </div >
308+ const someHtml3 = /* HTML */ \`
309+ <div class = " \${foo}" >foo</div >
375310\`;
376- const someHtml2 = /* HTML */ \`
377- <div >hello \${ world } </div >
311+ const someHtml4 = /* HTML */ \`
312+ <div class = \${bar}>bar </div>
378313\`;
379314
380315html\`\`;
@@ -383,6 +318,14 @@ html\`
383318 <my-element obj =\${obj}></my-element>
384319\`;
385320
321+ html\`
322+ <div class = " \${foo}" >foo</div >
323+ \`;
324+
325+ html\`
326+ <div class =\${bar}>bar</div>
327+ \`;
328+
386329html\`
387330 <\${Footer}>footer content<//>
388331\`;
@@ -484,53 +427,17 @@ printWidth: 80
484427=====================================input======================================
485428import { LitElement , html } from '@polymer/lit-element';
486429
487- class MyElement extends LitElement {
488- static get properties () {
489- return {
490- mood: { type: String }
491- };
492- }
493-
494- constructor() {
495- super ();
496- this .mood = ' happy' ;
497- }
498-
499- render() {
500- return html \`
501- <style
502-
503-
504- >
505- .mood { color : green ; }
506- </style
507-
508-
509-
510- >
511-
512- Web Components are <span
513-
514-
515- class = " mood" >\${
516- this .mood
517-
518- } </span
519-
520- >!
521- \`;
522- }
523- }
524-
525- customElements.define('my-element', MyElement);
526-
527- const someHtml1 = html\`<div > hello \${ world } </div >\`;
528- const someHtml2 = /* HTML */ \`<div > hello \${ world } </div >\`;
430+ const someHtml3 = /* HTML */ \`<div class = " \${foo}" >foo</div >\`;
431+ const someHtml4 = /* HTML */ \`<div class =\${bar}>bar</div>\`;
529432
530433html\`\`
531434
532435html\`<my-element obj =\${obj}></my-element>\`;
533436
437+ html\`<div class = " \${foo}" >foo</div >\`;
438+
439+ html\`<div class =\${bar}>bar</div>\`
440+
534441html\` <\${Footer} >footer content<// > \`
535442
536443html\` <div /> \`
@@ -588,40 +495,17 @@ html\`<div style=" color : red;
588495=====================================output=====================================
589496import { LitElement , html } from "@polymer/lit-element";
590497
591- class MyElement extends LitElement {
592- static get properties () {
593- return {
594- mood: { type: String },
595- };
596- }
597-
598- constructor() {
599- super ();
600- this .mood = " happy" ;
601- }
602-
603- render() {
604- return html \`
605- <style >
606- .mood {
607- color : green ;
608- }
609- </style >
610-
611- Web Components are <span class = " mood" >\${ this .mood } </span >!
612- \` ;
613- }
614- }
615-
616- customElements.define("my-element", MyElement);
617-
618- const someHtml1 = html\` <div >hello \${ world } </div >\` ;
619- const someHtml2 = /* HTML */ \` <div >hello \${ world } </div >\` ;
498+ const someHtml3 = /* HTML */ \`<div class = " \${foo}" >foo</div >\`;
499+ const someHtml4 = /* HTML */ \`<div class =\${bar}>bar</div>\`;
620500
621501html\`\`;
622502
623503html\`<my-element obj =\${obj}></my-element>\`;
624504
505+ html\`<div class = " \${foo}" >foo</div >\`;
506+
507+ html\`<div class =\${bar}>bar</div>\`;
508+
625509html\` <\${Footer}>footer content<//> \`;
626510
627511html\` <div /> \`;
0 commit comments