haml.js 534 B

123456789101112131415161718192021222324252627
  1. ace.define("ace/snippets/haml",["require","exports","module"], 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. });