Skip to content

Instantly share code, notes, and snippets.

@wycats
Last active August 29, 2015 14:13
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 wycats/b67eb065e5862902a7ee to your computer and use it in GitHub Desktop.
Save wycats/b67eb065e5862902a7ee to your computer and use it in GitHub Desktop.
<template instantiate>
<import tags="my-button" from="source"></import>
<!-- the template is never actually instantiated until the imports have loaded. -->
<my-button></my-button>
</template>
<!-- crazier, more fleshed out stuff -->
<template instantiate>
<import tags="my-button" from="source">
Fallback content while loading
</import>
</template>
<template instantiate>
<import>
<tags named="my-button" from="source"></tags>
<tags named="my-textarea" from="othersource"></tags>
<loading>
Fallback content while loading
</loading>
<error>
Fallback content when error
</error>
</import>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment