meteor-snippets

Meteor Snippets with tab completion

ThusStyles

19,156

46

0.5.0

MIT

GitHub

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