Skip to content
This repository was archived by the owner on Mar 18, 2020. It is now read-only.
This repository was archived by the owner on Mar 18, 2020. It is now read-only.

Support for html tag function #10

@JosefJezek

Description

@JosefJezek

Could you add support for html tag function? More info about html tag function is here
https://www.polymer-project.org/blog/2018-01-18-polymer-3-new-preview.html

Here is example from playground
https://codesandbox.io/s/github/StartPolymer/playgrounds/tree/master/v3/102

static get template() {
    return html`
      <p>myArray is: [[displayArray(myArray.*)]]</p>
      <p>myObject is:</p>
      <ul>
        <li>firstName: [[displayObjectProperty(myObject.*, 'firstName')]]</li>
        <li>lastName: [[displayObjectProperty(myObject.*, 'lastName')]]</li>
        <li>employeeNumber: [[displayObjectProperty(myObject.*, 'employeeNumber')]]</li>
        <li>birthdate: [[displayObjectProperty(myObject.*, 'birthdate')]]</li>
      </ul>
    `;
  }

We have lit-html extension for default highlighting.
https://marketplace.visualstudio.com/items?itemName=bierner.lit-html

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions