This repository was archived by the owner on Mar 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Support for html tag function #10
Copy link
Copy link
Open
Labels
Description
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
Reactions are currently unavailable