Giter VIP home page Giter VIP logo

meteor-snippets's Introduction

Meteor Snippets for Sublime Text 2/3

Some snippets for working with the Meteor framework (v1.0).

Includes snippets for

  • CoffeeScript (✔)
  • HTML (✔)
  • JavaScript (✔) - Updated to 1.0

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!

meteor-snippets's People

Contributors

benjaminrh avatar changjoo-park avatar devmanny avatar lnmunhoz avatar mbroder3pc avatar mrtnbroder avatar studiousstudent avatar thani-sh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

meteor-snippets's Issues

Quote style

I know... sorry. ;)

Would you consider using single quotes for JavaScript please? It seems like JavaScript linting code standards are converging upon: single quotes for everything, except double quotes for JSON.

This style is consistent with Node's core libs, JSLint, ExpressJS, Google's JavaScript Style Guide and other popular style guides:
https://github.com/felixge/node-style-guide#use-single-quotes
https://github.com/airbnb/javascript#strings

Meteor's core libs don't use a consistent style yet, they mix single and double, but I'm sure they'll eventually get with it too, probably following Node's style.

It'd just save time having to replace the quotes after using a snippet. I'm happy to go through and do this busywork for the javascript snippets if you'd like.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.