polyfiddle

Polymer boilerplate for jsFiddle

by Kayce Basques

HTML

<base href="https://polygit.org/components/">
<script src="webcomponentsjs/webcomponents-lite.min.js"></script>
<link href="polymer/polymer.html" rel="import">

<dom-module id="x-example">
  <style>
    :host {
      display: block;
    }
  </style>
  <template>
    <h1>polyfiddle</h1>
  </template>
</dom-module>

<x-example></x-example>

CSS

body {
  font-family: sans-serif;
}

JavaScript

// only need this when in the main document and on non-Chrome
addEventListener('WebComponentsReady', function() {
  Polymer({
    is: 'x-example'
  });
});