Install Handlebars support:
apm install atom-handlebars
Then clone this repo. From a command line inside the project directory, run:
apm link .
Then restart Atom.
Atom snippets documentation is here.
In a .js, .json, or .hbs file, type bsp
to see a list of available snippets. They use Atom's tab completion feature
In a .hbs file, type bsp
and you'll see a menu that looks like this showing you available Brightspot Base Handlebars snippets.
After hitting enter on the BSP Define Block
option, the snippet will be inserted in the page with exampleModule
highlighted. Type the name of your module to replace exampleModule
.
Type the Tab key, and the module extend path will be highlighted (there is also a standalone module snippet without the extend attribute). Type the path of the module you are extending.
Type Tab again, and exampleElement
will be highlighted in two places. Type the name of your first element once and both strings will be replaced.