White Trickster White Trickster - 2 months ago 8x
Node.js Question

Inser Polymer elements and scripts in a .Jade file

I don't know how to insert Polymer tags and UI components to Jade file, how to render it, or how to add the necessary script on the site. Can you help me with that?


Load up webcomponents polyfills


Import Polymer and the element you want to use.

link(rel="import" href="../bower_components/polymer/polymer.html")
link(rel="import" href="bower_components/paper-button/paper-button.html")

Then create instances of it in your jade template.

paper-button() flat button
paper-button(raised) raised button
paper-button(noink) No ripple effect