2016-03-13 23:26:27 +00:00
|
|
|
ace.define("ace/snippets/velocity",["require","exports","module"], function(require, exports, module) {
|
2014-07-08 20:15:22 +00:00
|
|
|
"use strict";
|
2013-12-30 15:00:16 +00:00
|
|
|
|
|
|
|
exports.snippetText = "# macro\n\
|
|
|
|
snippet #macro\n\
|
|
|
|
#macro ( ${1:macroName} ${2:\\$var1, [\\$var2, ...]} )\n\
|
|
|
|
${3:## macro code}\n\
|
|
|
|
#end\n\
|
|
|
|
# foreach\n\
|
|
|
|
snippet #foreach\n\
|
|
|
|
#foreach ( ${1:\\$item} in ${2:\\$collection} )\n\
|
|
|
|
${3:## foreach code}\n\
|
|
|
|
#end\n\
|
|
|
|
# if\n\
|
|
|
|
snippet #if\n\
|
|
|
|
#if ( ${1:true} )\n\
|
|
|
|
${0}\n\
|
|
|
|
#end\n\
|
|
|
|
# if ... else\n\
|
|
|
|
snippet #ife\n\
|
|
|
|
#if ( ${1:true} )\n\
|
|
|
|
${2}\n\
|
|
|
|
#else\n\
|
|
|
|
${0}\n\
|
|
|
|
#end\n\
|
|
|
|
#import\n\
|
|
|
|
snippet #import\n\
|
|
|
|
#import ( \"${1:path/to/velocity/format}\" )\n\
|
|
|
|
# set\n\
|
|
|
|
snippet #set\n\
|
|
|
|
#set ( $${1:var} = ${0} )\n\
|
|
|
|
";
|
|
|
|
exports.scope = "velocity";
|
|
|
|
exports.includeScopes = ["html", "javascript", "css"];
|
|
|
|
|
2020-04-14 12:14:48 +00:00
|
|
|
}); (function() {
|
|
|
|
ace.require(["ace/snippets/velocity"], function(m) {
|
|
|
|
if (typeof module == "object" && typeof exports == "object" && module) {
|
|
|
|
module.exports = m;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})();
|
|
|
|
|