Created
August 30, 2016 11:51
-
-
Save frenchbread/f5be231bb0b8e3c10339dc1834b5ad67 to your computer and use it in GitHub Desktop.
Some useful snippets for meteor development in Atom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'.source.js': | |
'import': | |
'prefix': 'import' | |
'body': "import { ${1:title} } from '${2:package-name}';" | |
'import-meteor': | |
'prefix': 'import-meteor' | |
'body': "import { Meteor } from 'meteor/meteor';" | |
'import-templating': | |
'prefix': 'import-templating' | |
'body': "import { Template } from 'meteor/templating';" | |
'import-reactivevar': | |
'prefix': 'import-reactivevar' | |
'body': "import { ReactiveVar } from 'meteor/reactive-var';" | |
'template-created': | |
'prefix': 'template-created' | |
'body': """ | |
Template.${1:title}.onCreated(function(){ | |
const instance = this; | |
${2:lets roll} | |
}); | |
""" | |
'template-rendered': | |
'prefix': 'template-rendered' | |
'body': """ | |
Template.${1:title}.onRendered(function(){ | |
const instance = this; | |
${2:lets roll} | |
}); | |
""" | |
'template-helpers': | |
'prefix': 'template-helpers' | |
'body': """ | |
Template.${1:title}.helpers({ | |
${2:roll} () { | |
const instance = Template.instance(); | |
} | |
}); | |
""" | |
'template-events': | |
'prefix': 'template-events' | |
'body': """ | |
Template.${1:title}.events({ | |
'${2:click #roll}': function (event, instance) { | |
${3:lets roll} | |
} | |
}); | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment