haml.js 834 B

1234567891011121314151617181920212223242526272829303132333435
  1. ace.define("ace/snippets/haml",[], function(require, exports, module) {
  2. "use strict";
  3. exports.snippetText = "snippet t\n\
  4. %table\n\
  5. %tr\n\
  6. %th\n\
  7. ${1:headers}\n\
  8. %tr\n\
  9. %td\n\
  10. ${2:headers}\n\
  11. snippet ul\n\
  12. %ul\n\
  13. %li\n\
  14. ${1:item}\n\
  15. %li\n\
  16. snippet =rp\n\
  17. = render :partial => '${1:partial}'\n\
  18. snippet =rpl\n\
  19. = render :partial => '${1:partial}', :locals => {}\n\
  20. snippet =rpc\n\
  21. = render :partial => '${1:partial}', :collection => @$1\n\
  22. \n\
  23. ";
  24. exports.scope = "haml";
  25. });
  26. (function() {
  27. ace.require(["ace/snippets/haml"], function(m) {
  28. if (typeof module == "object" && typeof exports == "object" && module) {
  29. module.exports = m;
  30. }
  31. });
  32. })();