Skip to content

Instantly share code, notes, and snippets.

@wycats

wycats/gist:b67eb065e5862902a7ee Secret

Last active Aug 29, 2015
Embed
What would you like to do?
<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
You can’t perform that action at this time.