Skip to content

Instantly share code, notes, and snippets.

@rzorzal
Created October 10, 2017 00:28
Show Gist options
  • Save rzorzal/40c5f70d4ac78ecde96fc60420836051 to your computer and use it in GitHub Desktop.
Save rzorzal/40c5f70d4ac78ecde96fc60420836051 to your computer and use it in GitHub Desktop.
snnimpetcore.cson
'.text.html.basic':
'Core Component':
'prefix': 'ccomponent'
'body': """<component name="$1">
<imports>
</imports>
<template>
</template>
<style>
</style>
<script>
class $2Component extends CoreComponent {
constructor(){
super();
}
static get observedAttributes() {
return [
]
};
connectedCallback(){
super.connectedCallback();
}
};
module.exports = $2Component;
</script>
</component>
"""
'Core Page':
'prefix': 'cpage'
'body': """<page name="$1">
<imports>
</imports>
<template>
</template>
<style>
</style>
<script>
class $2Page extends CorePage {
constructor(){
super();
}
static get observedAttributes() {
return [
]
};
connectedCallback(){
super.connectedCallback();
}
};
module.exports = $2Page;
</script>
</page>
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment