Atom Backbone provides Backbone shortcuts for CoffeeScript, JavaScript and HTML
Key features:
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 layoutmodelview
: Creates model view helper snippetcollectionview
: Creates collection view helper snippetsuper
: Creates super method callertemplate
: Creates _.template
snippethistory
: Generates Bacbone.Histroy.start
functionlayoutconfig
: Generates Backbone LayoutManager configuration scopeAll 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 tagdef
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 classexp
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 classGood catch. Let us know what about this package looks wrong to you, and we'll investigate right away.