vimrc/sources_non_forked/vim-snippets/snippets/javascript/javascript-requirejs.snippets

15 lines
335 B
Text
Raw Normal View History

2014-09-27 15:32:18 +00:00
snippet def
define(["${1:#dependencies1}"], function (${2:#dependencies2}) {
return ${0:TARGET};
});
snippet defn
define("${1:#name}", ["${2:#dependencies1}"], function (${3:#dependencies2}) {
return ${0:TARGET};
});
snippet reqjs
require(["${1:#dependencies1}"], function (${2:#dependencies2}) {
return ${0:TARGET};
});