vim-snippets/snippets/coffee/requirejs_coffee.snippets
Tobias Witt a83775cfeb Add snippets for requirejs module definitions for coffee- and javascript
The snippet that generates a require block is called `reqjs` in order to
have no collision with the existing `req` snippet.
2014-08-01 10:08:21 +02:00

12 lines
281 B
Plaintext

snippet def
define ["${1:#dependencies1}"], (${2:#dependencies2}) ->
${0:TARGET}
snippet defn
define "${1:#name}", ["${2:#dependencies1}"], (${3:#dependencies2}) ->
${0:TARGET}
snippet reqjs
require ["${1:#dependencies1}"], (${2:#dependencies2}) ->
${0:TARGET}