Skip to content

ThusStyles/meteor-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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