ThusStyles / meteor-snippets

Meteor snippets for the atom editor
MIT License
30 stars 12 forks source link

Meteor snippets for atom editor

Basic snippets to make meteor development faster in atom

Works with Javascript + Coffeescript!

Examples

mtp

<template name="name">
  ...
</template>

mea

{{#each collection}}
  ...
{{/each}}

mif

{{#if statement}}
  ...
{{/if}}

mife

{{#if statement}}
  ...
{{else}}
  ...
{{/if}}

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){
    ...
  }
});