polymer-microdata
Polymer mixin to support microdata properties.
To install polymer-microdata in your Polymer project run the following:
> npm install polymer-microdata --save
You can then decorate your custom elements as follows:
PolymerElement static { return 'my-microdata-element' } static { return html`{{name}}` } static { return name: type: String } customElements
You can then populate your element properties using microdata syntax as follows:
my-name
This should render as:
my-name
Hacking
To modify polymer-microdata
you need the following installed:
Once you've cloned the repo run the following shell commands:
> npm install
You can run the tests as follows:
> npm test
Or you can run the test suite in your browser by running polymer serve --open
and copy-and-pasting http://127.0.0.1:8081/components/polymer-microdata/test/
into your address bar.