Created
January 26, 2012 23:21
-
-
Save milosdakic/1685788 to your computer and use it in GitHub Desktop.
Backbone.js Vim Snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Class | |
snippet bc | |
var ${1:Thing} = Class.extend({ | |
initialize: function(${2:Attributes}) { | |
} | |
}); | |
# Model | |
snippet bbm | |
var ${1:Thing} = Backbone.Model.extend({ | |
initialize: function () { | |
} | |
}); | |
# Collection | |
snippet bbc | |
var ${1:Thing} = Backbone.Collection.extend({ | |
model: ${2:Thing} | |
}); | |
# Router | |
snippet bbr | |
var ${1:Thing} = Backbone.Router.extend({ | |
routes: { | |
}, | |
}); | |
# View | |
snippet bbv | |
var ${1:Thing} = Backbone.View.extend({ | |
tagName: '${2:Tag}' | |
el: '${3:Tag}' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment