Atom Backbone provides Backbone shortcuts for CoffeeScript, JavaScript and HTML
Key features:
- HTML micro-template language, autocompletion and snippets
- Backbone.LayoutManager autocompletion and snippets
- CoffeeScript and JavaScript support (Coming Soon: TypeScript)
- Programmatic Helpers and Common Patterns snippets
- AMD and CommonJS wrapper snippets
Backbone plugin have autocompletion support all of the Backbone methods and classes. It also includes Underscore or Lo-dash autocompletion.
model
: Creates model snippetview
: Creates view snippetcollection
: Creates collection snippetrouter
: Creates router snippetlayout
: Creates Backbone LayoutManager's layout
modelview
: Creates model view helper snippetcollectionview
: Creates collection view helper snippetsuper
: Creates super method callertemplate
: Creates_.template
snippethistory
: GeneratesBacbone.Histroy.start
functionlayoutconfig
: Generates Backbone LayoutManager configuration scope
All template helpers works in HTML scope. They all have "%" prefix.
%
: Generates<% %>
%=
: Generates<%= %>
%if
: Generates if helper in template with template syntax.%ifels
: Generates if-else helper in template with template syntax%for
: Generates for loop in template syntax%in
: Geneates for-in loop in template syntax%each
: Genearates_.each
loop in template syntax%template
: Generates script template tag
def
prefix generates AMD wrapper. It puts the keyword to the body and
you should push tab
key after body.
defmodel
: Generates AMD for model classdefview
: Generates AMD for view classdefcollection
: Generates AMD for collection classdefrouter
: Generates AMD for router classdeflayout
: Generates AMD for layout class
exp
prefix generates CommonJS wrapper (you can remember with "export"). It puts the keyword to the body and
you should push tab
key after body.
expmodel
: Generates CommonJS module for model classexpview
: Generates CommonJS module for view classexpcollection
: Generates CommonJS module for collection classexprouter
: Generates CommonJS module for router classexplayout
: Generates CommonJS module for layout class