Basic snippets to make meteor development faster in atom
Works with Javascript + Coffeescript!
mtp
<template name="name">
...
</template>
mea
mif
mife
cola
Collection.allow({
insert: function (...) {
...
},
update: function (...) {
...
},
remove: function (..) {
...
}
...
});
colde
Collection.deny({
update: function (...) {
...
},
remove: function (...) {
...
}
...
});
mcol
Collection = new Meteor.collection("collection");
mpub
Meteor.publish("name", function(argument){
...
});
msub
Meteor.subscribe("name", argument);
mmeth
Meteor.methods({
"name": function (argument) {
...
}
});
mren
Template.name.onRendered(function(){
...
});
mcre
Template.name.onCreated(function(){
...
});
mdes
Template.name.onDestroyed(function(){
...
});
mhel
Template.name.helpers({
helper: function(){
...
}
});
mevn
Template.name.events({
'event': function(e, t){
...
}
});