Skip to content

Instantly share code, notes, and snippets.

@nevir
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nevir/74e8178c9d4af629f0fc to your computer and use it in GitHub Desktop.
Save nevir/74e8178c9d4af629f0fc to your computer and use it in GitHub Desktop.
<import src="jquery" as="$">
<import src="squid.html" element-as="my-squid">
<my-squid></my-squid>
<script type="module">
import Squid from 'squid.html'
document.registerElement('my-squid', Squid)
</script>
<my-squid></my-squid>
<import src="tentacle.html" element-as="x-tentacle">
<import src="ink.html" element-as="x-ink">
<template>
<x-template></x-template>
<x-ink></x-ink>
</template>
<script type="module">
export default class Squid extends HTMLElement {
// ...
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment