d8d4867d7fff5b67bbbdd47e637b3a6c.js 1.2 KB

1234567891011121314151617
  1. ace.define("ace/snippets/velocity.snippets",["require","exports","module"], function(require, exports, module){module.exports = "# macro\nsnippet #macro\n\t#macro ( ${1:macroName} ${2:\\$var1, [\\$var2, ...]} )\n\t\t${3:## macro code}\n\t#end\n# foreach\nsnippet #foreach\n\t#foreach ( ${1:\\$item} in ${2:\\$collection} )\n\t\t${3:## foreach code}\n\t#end\n# if\nsnippet #if\n\t#if ( ${1:true} )\n\t\t${0}\n\t#end\n# if ... else\nsnippet #ife\n\t#if ( ${1:true} )\n\t\t${2}\n\t#else\n\t\t${0}\n\t#end\n#import\nsnippet #import\n\t#import ( \"${1:path/to/velocity/format}\" )\n# set\nsnippet #set\n\t#set ( $${1:var} = ${0} )\n";
  2. });
  3. ace.define("ace/snippets/velocity",["require","exports","module","ace/snippets/velocity.snippets"], function(require, exports, module){"use strict";
  4. exports.snippetText = require("./velocity.snippets");
  5. exports.scope = "velocity";
  6. exports.includeScopes = ["html", "javascript", "css"];
  7. }); (function() {
  8. ace.require(["ace/snippets/velocity"], function(m) {
  9. if (typeof module == "object" && typeof exports == "object" && module) {
  10. module.exports = m;
  11. }
  12. });
  13. })();