Skip to content

Latest commit

 

History

History
77 lines (58 loc) · 1.37 KB

README.md

File metadata and controls

77 lines (58 loc) · 1.37 KB

Meteor Snippets for Sublime Text 2/3

Some snippets for working with the Meteor framework (v0.6.5).

Includes snippets for

  • CoffeeScript (✔)
  • HTML (✔)
  • JavaScript (✔)

Installation

You can install them now via Package Control (search for "Meteor Snippets") or manually via git:

OS X
git clone git://github.com/mrtnbroder/meteor-snippets.git ~/Library/Application Support/Sublime Text 2/Packages/Meteor Snippets
Linux
git clone git://github.com/mrtnbroder/meteor-snippets.git ~/.config/sublime-text-2/Packages/Meteor Snippets
Windows
git clone git://github.com/mrtnbroder/meteor-snippets.git %userprofile%\AppData\Roaming\Sublime Text 2\Packages\Meteor Snippets

Examples

tp

<template name='main'>
	...
</template>

Meteor.render

Meteor.render(function () {
	...
});

Meteor.publish

Meteor.publish('name', function () {
	...
});

if

{{#if guyIs 'male'}}
	...
{{/if}}

ea

{{#each player}}
	...
{{/each}}

... and a whole lot more!

Todo's

  • remap some tab triggers
  • fix some snippets (missing semicolons, whitespace, tab behaviour etc.)

Contributing

Got some neat Meteor snippets you want to share? fork this repro and send me a pull request!