haml_coffee_assets 1.4.2 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  # coding: UTF-8
2
2
 
3
3
  module HamlCoffeeAssets
4
- VERSION = '1.4.2' unless defined?(HamlCoffeeAssets::VERSION)
4
+ VERSION = '1.4.3' unless defined?(HamlCoffeeAssets::VERSION)
5
5
  end
@@ -12,7 +12,7 @@ if (!String.prototype.trim) {
12
12
  */
13
13
  var HamlCoffeeAssets = (function(){
14
14
 
15
- var Compiler = require('/haml-coffee.js');
15
+ var Compiler = require('./haml-coffee');
16
16
 
17
17
  return {
18
18
 
@@ -44,7 +44,7 @@ var HamlCoffeeAssets = (function(){
44
44
  customSurround, customSucceed, customPrecede,
45
45
  preserveTags, selfCloseTags,
46
46
  context, extendScope) {
47
-
47
+
48
48
  var compiler = new Compiler({
49
49
  format: format,
50
50
  uglify: uglify,
@@ -70,10 +70,10 @@ var HamlCoffeeAssets = (function(){
70
70
 
71
71
  if (jst) {
72
72
  template = CoffeeScript.compile(compiler.render(name, namespace));
73
-
73
+
74
74
  } else {
75
75
  var hamlc = CoffeeScript.compile(compiler.precompile(), { bare: true });
76
-
76
+
77
77
  if (extendScope) {
78
78
  template = '(function(context) {\n with(context || {}) {\n return (function() {\n' + hamlc.replace(/^(.*)$/mg, ' $1') + '\n };\n }).call(context);\n});';
79
79
  } else {
@@ -341,7 +341,7 @@ exports.extname = function(path) {
341
341
 
342
342
  });
343
343
 
344
- require.define("/haml-coffee.js", function (require, module, exports, __dirname, __filename) {
344
+ require.define("/haml-coffee.coffee", function (require, module, exports, __dirname, __filename) {
345
345
  (function() {
346
346
  var Code, Comment, Filter, Haml, HamlCoffee, Node, Text, indent, whitespace;
347
347
 
@@ -363,37 +363,35 @@ require.define("/haml-coffee.js", function (require, module, exports, __dirname,
363
363
 
364
364
  module.exports = HamlCoffee = (function() {
365
365
 
366
- HamlCoffee.VERSION = '1.4.1';
366
+ HamlCoffee.VERSION = '1.4.2';
367
367
 
368
368
  function HamlCoffee(options) {
369
- var _base, _base1, _base2, _base3, _base4, _base5, _base6, _base7, _base8, _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
369
+ var _base, _base2, _base3, _base4, _base5, _base6, _base7, _base8, _base9, _ref, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
370
370
  this.options = options != null ? options : {};
371
371
  if ((_ref = (_base = this.options).escapeHtml) == null) {
372
372
  _base.escapeHtml = true;
373
373
  }
374
- if ((_ref1 = (_base1 = this.options).escapeAttributes) == null) {
375
- _base1.escapeAttributes = true;
374
+ if ((_ref2 = (_base2 = this.options).escapeAttributes) == null) {
375
+ _base2.escapeAttributes = true;
376
376
  }
377
- if ((_ref2 = (_base2 = this.options).cleanValue) == null) {
378
- _base2.cleanValue = true;
377
+ if ((_ref3 = (_base3 = this.options).cleanValue) == null) {
378
+ _base3.cleanValue = true;
379
379
  }
380
- if ((_ref3 = (_base3 = this.options).uglify) == null) {
381
- _base3.uglify = false;
380
+ if ((_ref4 = (_base4 = this.options).uglify) == null) _base4.uglify = false;
381
+ if ((_ref5 = (_base5 = this.options).basename) == null) {
382
+ _base5.basename = false;
382
383
  }
383
- if ((_ref4 = (_base4 = this.options).basename) == null) {
384
- _base4.basename = false;
384
+ if ((_ref6 = (_base6 = this.options).extendScope) == null) {
385
+ _base6.extendScope = false;
385
386
  }
386
- if ((_ref5 = (_base5 = this.options).extendScope) == null) {
387
- _base5.extendScope = false;
387
+ if ((_ref7 = (_base7 = this.options).format) == null) {
388
+ _base7.format = 'html5';
388
389
  }
389
- if ((_ref6 = (_base6 = this.options).format) == null) {
390
- _base6.format = 'html5';
390
+ if ((_ref8 = (_base8 = this.options).preserveTags) == null) {
391
+ _base8.preserveTags = 'pre,textarea';
391
392
  }
392
- if ((_ref7 = (_base7 = this.options).preserveTags) == null) {
393
- _base7.preserveTags = 'pre,textarea';
394
- }
395
- if ((_ref8 = (_base8 = this.options).selfCloseTags) == null) {
396
- _base8.selfCloseTags = 'meta,img,link,br,hr,input,area,param,col,base';
393
+ if ((_ref9 = (_base9 = this.options).selfCloseTags) == null) {
394
+ _base9.selfCloseTags = 'meta,img,link,br,hr,input,area,param,col,base';
397
395
  }
398
396
  }
399
397
 
@@ -446,18 +444,16 @@ require.define("/haml-coffee.js", function (require, module, exports, __dirname,
446
444
  };
447
445
 
448
446
  HamlCoffee.prototype.popParent = function() {
449
- var i, _i, _ref, _results;
447
+ var i, _ref, _results;
450
448
  _results = [];
451
- for (i = _i = 0, _ref = this.delta - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; i = 0 <= _ref ? ++_i : --_i) {
449
+ for (i = 0, _ref = this.delta - 1; 0 <= _ref ? i <= _ref : i >= _ref; 0 <= _ref ? i++ : i--) {
452
450
  _results.push(this.parentNode = this.stack.pop());
453
451
  }
454
452
  return _results;
455
453
  };
456
454
 
457
455
  HamlCoffee.prototype.getNodeOptions = function(override) {
458
- if (override == null) {
459
- override = {};
460
- }
456
+ if (override == null) override = {};
461
457
  return {
462
458
  parentNode: override.parentNode || this.parentNode,
463
459
  blockLevel: override.blockLevel || this.currentBlockLevel,
@@ -474,9 +470,7 @@ require.define("/haml-coffee.js", function (require, module, exports, __dirname,
474
470
 
475
471
  HamlCoffee.prototype.nodeFactory = function(expression) {
476
472
  var node, options, _ref;
477
- if (expression == null) {
478
- expression = '';
479
- }
473
+ if (expression == null) expression = '';
480
474
  options = this.getNodeOptions();
481
475
  if (expression.match(/^:(escaped|preserve|css|javascript|plain|cdata|coffeescript)/)) {
482
476
  node = new Filter(expression, options);
@@ -484,22 +478,18 @@ require.define("/haml-coffee.js", function (require, module, exports, __dirname,
484
478
  node = new Comment(expression, options);
485
479
  } else if (expression.match(/^(-#|-|=|!=|\&=|~)\s*(.*)/)) {
486
480
  node = new Code(expression, options);
487
- } else if (expression.match(/^(%|#|\.|\!)(.*)/)) {
481
+ } else if (expression.match(/^(%|#[^{]|\.|\!)(.*)/)) {
488
482
  node = new Haml(expression, options);
489
483
  } else {
490
484
  node = new Text(expression, options);
491
485
  }
492
- if ((_ref = options.parentNode) != null) {
493
- _ref.addChild(node);
494
- }
486
+ if ((_ref = options.parentNode) != null) _ref.addChild(node);
495
487
  return node;
496
488
  };
497
489
 
498
490
  HamlCoffee.prototype.parse = function(source) {
499
491
  var attributes, expression, line, lines, result, text, ws, _ref;
500
- if (source == null) {
501
- source = '';
502
- }
492
+ if (source == null) source = '';
503
493
  this.lineNumber = this.previousIndent = this.tabSize = this.currentBlockLevel = this.previousBlockLevel = 0;
504
494
  this.currentCodeBlockLevel = this.previousCodeBlockLevel = 0;
505
495
  this.node = null;
@@ -533,9 +523,7 @@ require.define("/haml-coffee.js", function (require, module, exports, __dirname,
533
523
  result = line.match(/^(\s*)(.*)/);
534
524
  ws = result[1];
535
525
  expression = result[2];
536
- if (/^\s*$/.test(line)) {
537
- continue;
538
- }
526
+ if (/^\s*$/.test(line)) continue;
539
527
  while (/^[%.#].*[{(]/.test(expression) && !/^(\s*)[-=&!~.%#</]/.test(lines[0]) && /([-\w]+[\w:-]*\w?)\s*=|('\w+[\w:-]*\w?')\s*=|("\w+[\w:-]*\w?")\s*=|(\w+[\w:-]*\w?):|('[-\w]+[\w:-]*\w?'):|("[-\w]+[\w:-]*\w?"):|:(\w+[\w:-]*\w?)\s*=>|:?'([-\w]+[\w:-]*\w?)'\s*=>|:?"([-\w]+[\w:-]*\w?)"\s*=>/.test(lines[0])) {
540
528
  attributes = lines.shift();
541
529
  expression = expression.replace(/(\s)+\|\s*$/, '');
@@ -577,9 +565,7 @@ require.define("/haml-coffee.js", function (require, module, exports, __dirname,
577
565
 
578
566
  HamlCoffee.prototype.render = function(templateName, namespace) {
579
567
  var segment, segments, template, _i, _len;
580
- if (namespace == null) {
581
- namespace = 'window.HAML';
582
- }
568
+ if (namespace == null) namespace = 'window.HAML';
583
569
  template = '';
584
570
  segments = ("" + namespace + "." + templateName).replace(/(\s|-)+/g, '_').split(/\./);
585
571
  templateName = this.options.basename ? segments.pop().split(/\/|\\/).pop() : segments.pop();
@@ -670,7 +656,7 @@ require.define("/haml-coffee.js", function (require, module, exports, __dirname,
670
656
  };
671
657
 
672
658
  HamlCoffee.prototype.createCode = function() {
673
- var child, code, line, processors, _i, _j, _len, _len1, _ref, _ref1;
659
+ var child, code, line, processors, _i, _j, _len, _len2, _ref, _ref2;
674
660
  code = [];
675
661
  this.lines = [];
676
662
  _ref = this.root.children;
@@ -680,9 +666,9 @@ require.define("/haml-coffee.js", function (require, module, exports, __dirname,
680
666
  }
681
667
  this.lines = this.combineText(this.lines);
682
668
  this.blockLevel = 0;
683
- _ref1 = this.lines;
684
- for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
685
- line = _ref1[_j];
669
+ _ref2 = this.lines;
670
+ for (_j = 0, _len2 = _ref2.length; _j < _len2; _j++) {
671
+ line = _ref2[_j];
686
672
  if (line !== null) {
687
673
  switch (line.type) {
688
674
  case 'text':
@@ -698,18 +684,10 @@ require.define("/haml-coffee.js", function (require, module, exports, __dirname,
698
684
  break;
699
685
  case 'insert':
700
686
  processors = '';
701
- if (line.findAndPreserve) {
702
- processors += '$fp ';
703
- }
704
- if (line.preserve) {
705
- processors += '$p ';
706
- }
707
- if (line.escape) {
708
- processors += '$e ';
709
- }
710
- if (this.options.cleanValue) {
711
- processors += '$c ';
712
- }
687
+ if (line.findAndPreserve) processors += '$fp ';
688
+ if (line.preserve) processors += '$p ';
689
+ if (line.escape) processors += '$e ';
690
+ if (this.options.cleanValue) processors += '$c ';
713
691
  code.push("" + (whitespace(line.cw)) + (this.getBuffer(this.blockLevel)) + ".push \"" + (whitespace(line.hw)) + "\" + " + processors + line.code);
714
692
  if (line.block === 'start') {
715
693
  this.blockLevel += 1;
@@ -768,7 +746,7 @@ require.define("/haml-coffee.js", function (require, module, exports, __dirname,
768
746
 
769
747
  });
770
748
 
771
- require.define("/nodes/node.js", function (require, module, exports, __dirname, __filename) {
749
+ require.define("/nodes/node.coffee", function (require, module, exports, __dirname, __filename) {
772
750
  (function() {
773
751
  var Node, escapeHTML;
774
752
 
@@ -782,9 +760,7 @@ require.define("/nodes/node.js", function (require, module, exports, __dirname,
782
760
 
783
761
  function Node(expression, options) {
784
762
  this.expression = expression != null ? expression : '';
785
- if (options == null) {
786
- options = {};
787
- }
763
+ if (options == null) options = {};
788
764
  this.parentNode = options.parentNode;
789
765
  this.children = [];
790
766
  this.opener = this.closer = null;
@@ -831,9 +807,7 @@ require.define("/nodes/node.js", function (require, module, exports, __dirname,
831
807
  };
832
808
 
833
809
  Node.prototype.isPreserved = function() {
834
- if (this.preserve) {
835
- return true;
836
- }
810
+ if (this.preserve) return true;
837
811
  if (this.parentNode) {
838
812
  return this.parentNode.isPreserved();
839
813
  } else {
@@ -842,9 +816,7 @@ require.define("/nodes/node.js", function (require, module, exports, __dirname,
842
816
  };
843
817
 
844
818
  Node.prototype.isCommented = function() {
845
- if (this.constructor.name === 'Comment') {
846
- return true;
847
- }
819
+ if (this.constructor.name === 'Comment') return true;
848
820
  if (this.parentNode) {
849
821
  return this.parentNode.isCommented();
850
822
  } else {
@@ -853,9 +825,7 @@ require.define("/nodes/node.js", function (require, module, exports, __dirname,
853
825
  };
854
826
 
855
827
  Node.prototype.markText = function(text, escape) {
856
- if (escape == null) {
857
- escape = false;
858
- }
828
+ if (escape == null) escape = false;
859
829
  return {
860
830
  type: 'text',
861
831
  cw: this.codeBlockLevel,
@@ -873,15 +843,9 @@ require.define("/nodes/node.js", function (require, module, exports, __dirname,
873
843
  };
874
844
 
875
845
  Node.prototype.markInsertingCode = function(code, escape, preserve, findAndPreserve) {
876
- if (escape == null) {
877
- escape = false;
878
- }
879
- if (preserve == null) {
880
- preserve = false;
881
- }
882
- if (findAndPreserve == null) {
883
- findAndPreserve = false;
884
- }
846
+ if (escape == null) escape = false;
847
+ if (preserve == null) preserve = false;
848
+ if (findAndPreserve == null) findAndPreserve = false;
885
849
  return {
886
850
  type: 'insert',
887
851
  cw: this.codeBlockLevel,
@@ -896,11 +860,9 @@ require.define("/nodes/node.js", function (require, module, exports, __dirname,
896
860
  Node.prototype.evaluate = function() {};
897
861
 
898
862
  Node.prototype.render = function() {
899
- var child, output, rendered, tag, _i, _j, _k, _l, _len, _len1, _len2, _len3, _len4, _m, _ref, _ref1, _ref2, _ref3, _ref4;
863
+ var child, output, rendered, tag, _i, _j, _k, _l, _len, _len2, _len3, _len4, _len5, _m, _ref, _ref2, _ref3, _ref4, _ref5;
900
864
  output = [];
901
- if (this.silent) {
902
- return output;
903
- }
865
+ if (this.silent) return output;
904
866
  if (this.children.length === 0) {
905
867
  if (this.opener && this.closer) {
906
868
  tag = this.getOpener();
@@ -921,9 +883,9 @@ require.define("/nodes/node.js", function (require, module, exports, __dirname,
921
883
  _ref = this.children;
922
884
  for (_i = 0, _len = _ref.length; _i < _len; _i++) {
923
885
  child = _ref[_i];
924
- _ref1 = child.render();
925
- for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
926
- rendered = _ref1[_j];
886
+ _ref2 = child.render();
887
+ for (_j = 0, _len2 = _ref2.length; _j < _len2; _j++) {
888
+ rendered = _ref2[_j];
927
889
  rendered.hw = this.blockLevel;
928
890
  output.push(rendered);
929
891
  }
@@ -931,24 +893,24 @@ require.define("/nodes/node.js", function (require, module, exports, __dirname,
931
893
  output.push(this.getCloser());
932
894
  } else {
933
895
  output.push(this.getOpener());
934
- _ref2 = this.children;
935
- for (_k = 0, _len2 = _ref2.length; _k < _len2; _k++) {
936
- child = _ref2[_k];
896
+ _ref3 = this.children;
897
+ for (_k = 0, _len3 = _ref3.length; _k < _len3; _k++) {
898
+ child = _ref3[_k];
937
899
  output = output.concat(child.render());
938
900
  }
939
901
  output.push(this.getCloser());
940
902
  }
941
903
  } else if (this.opener) {
942
904
  output.push(this.getOpener());
943
- _ref3 = this.children;
944
- for (_l = 0, _len3 = _ref3.length; _l < _len3; _l++) {
945
- child = _ref3[_l];
905
+ _ref4 = this.children;
906
+ for (_l = 0, _len4 = _ref4.length; _l < _len4; _l++) {
907
+ child = _ref4[_l];
946
908
  output = output.concat(child.render());
947
909
  }
948
910
  } else {
949
- _ref4 = this.children;
950
- for (_m = 0, _len4 = _ref4.length; _m < _len4; _m++) {
951
- child = _ref4[_m];
911
+ _ref5 = this.children;
912
+ for (_m = 0, _len5 = _ref5.length; _m < _len5; _m++) {
913
+ child = _ref5[_m];
952
914
  output.push(this.markText(child.render().text));
953
915
  }
954
916
  }
@@ -964,8 +926,7 @@ require.define("/nodes/node.js", function (require, module, exports, __dirname,
964
926
 
965
927
  });
966
928
 
967
- require.define("/util/text.js", function (require, module, exports, __dirname, __filename) {
968
- (function() {
929
+ require.define("/util/text.coffee", function (require, module, exports, __dirname, __filename) {
969
930
 
970
931
  module.exports = {
971
932
  whitespace: function(n) {
@@ -978,21 +939,15 @@ require.define("/util/text.js", function (require, module, exports, __dirname, _
978
939
  return a.join('');
979
940
  },
980
941
  escapeQuotes: function(text) {
981
- if (!text) {
982
- return '';
983
- }
942
+ if (!text) return '';
984
943
  return text.replace(/"/g, '\\"').replace(/\\\\\"/g, '\\"');
985
944
  },
986
945
  unescapeQuotes: function(text) {
987
- if (!text) {
988
- return '';
989
- }
946
+ if (!text) return '';
990
947
  return text.replace(/\\"/g, '"');
991
948
  },
992
949
  escapeHTML: function(text) {
993
- if (!text) {
994
- return '';
995
- }
950
+ if (!text) return '';
996
951
  return text.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;');
997
952
  },
998
953
  preserve: function(code) {
@@ -1007,26 +962,23 @@ require.define("/util/text.js", function (require, module, exports, __dirname, _
1007
962
  }
1008
963
  };
1009
964
 
1010
- }).call(this);
1011
-
1012
965
  });
1013
966
 
1014
- require.define("/nodes/text.js", function (require, module, exports, __dirname, __filename) {
967
+ require.define("/nodes/text.coffee", function (require, module, exports, __dirname, __filename) {
1015
968
  (function() {
1016
- var Node, Text, escapeQuotes,
1017
- __hasProp = {}.hasOwnProperty,
1018
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
969
+ var Node, Text, escapeQuotes;
970
+ var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; };
1019
971
 
1020
972
  Node = require('./node');
1021
973
 
1022
974
  escapeQuotes = require('../util/text').escapeQuotes;
1023
975
 
1024
- module.exports = Text = (function(_super) {
976
+ module.exports = Text = (function() {
1025
977
 
1026
- __extends(Text, _super);
978
+ __extends(Text, Node);
1027
979
 
1028
980
  function Text() {
1029
- return Text.__super__.constructor.apply(this, arguments);
981
+ Text.__super__.constructor.apply(this, arguments);
1030
982
  }
1031
983
 
1032
984
  Text.prototype.evaluate = function() {
@@ -1035,28 +987,27 @@ require.define("/nodes/text.js", function (require, module, exports, __dirname,
1035
987
 
1036
988
  return Text;
1037
989
 
1038
- })(Node);
990
+ })();
1039
991
 
1040
992
  }).call(this);
1041
993
 
1042
994
  });
1043
995
 
1044
- require.define("/nodes/haml.js", function (require, module, exports, __dirname, __filename) {
996
+ require.define("/nodes/haml.coffee", function (require, module, exports, __dirname, __filename) {
1045
997
  (function() {
1046
- var Haml, Node, escapeQuotes,
1047
- __hasProp = {}.hasOwnProperty,
1048
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
998
+ var Haml, Node, escapeQuotes;
999
+ var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; };
1049
1000
 
1050
1001
  Node = require('./node');
1051
1002
 
1052
1003
  escapeQuotes = require('../util/text').escapeQuotes;
1053
1004
 
1054
- module.exports = Haml = (function(_super) {
1005
+ module.exports = Haml = (function() {
1055
1006
 
1056
- __extends(Haml, _super);
1007
+ __extends(Haml, Node);
1057
1008
 
1058
1009
  function Haml() {
1059
- return Haml.__super__.constructor.apply(this, arguments);
1010
+ Haml.__super__.constructor.apply(this, arguments);
1060
1011
  }
1061
1012
 
1062
1013
  Haml.prototype.evaluate = function() {
@@ -1120,18 +1071,16 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1120
1071
  };
1121
1072
 
1122
1073
  Haml.prototype.parseExpression = function(exp) {
1123
- var attributes, classes, id, key, tag, value, _ref, _ref1;
1074
+ var attributes, classes, id, key, tag, value, _ref, _ref2;
1124
1075
  tag = this.parseTag(exp);
1125
- if (this.preserveTags.indexOf(tag.tag) !== -1) {
1126
- this.preserve = true;
1127
- }
1076
+ if (this.preserveTags.indexOf(tag.tag) !== -1) this.preserve = true;
1128
1077
  id = this.wrapCode((_ref = tag.ids) != null ? _ref.pop() : void 0, true);
1129
1078
  classes = tag.classes;
1130
1079
  attributes = {};
1131
1080
  if (tag.attributes) {
1132
- _ref1 = tag.attributes;
1133
- for (key in _ref1) {
1134
- value = _ref1[key];
1081
+ _ref2 = tag.attributes;
1082
+ for (key in _ref2) {
1083
+ value = _ref2[key];
1135
1084
  if (key === 'id') {
1136
1085
  if (id) {
1137
1086
  id += '_' + this.wrapCode(value, true);
@@ -1158,7 +1107,7 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1158
1107
  };
1159
1108
 
1160
1109
  Haml.prototype.parseTag = function(exp) {
1161
- var assignment, attributes, ch, classes, doctype, end, haml, id, ids, klass, level, pos, rest, start, tag, text, whitespace, _i, _ref, _ref1, _ref2;
1110
+ var assignment, attributes, ch, classes, doctype, end, haml, id, ids, klass, level, pos, rest, start, tag, text, whitespace, _ref, _ref2, _ref3;
1162
1111
  try {
1163
1112
  doctype = (_ref = exp.match(/^(\!{3}.*)/)) != null ? _ref[1] : void 0;
1164
1113
  if (doctype) {
@@ -1179,11 +1128,9 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1179
1128
  }
1180
1129
  })();
1181
1130
  level = 0;
1182
- for (pos = _i = 0, _ref1 = rest.length; 0 <= _ref1 ? _i <= _ref1 : _i >= _ref1; pos = 0 <= _ref1 ? ++_i : --_i) {
1131
+ for (pos = 0, _ref2 = rest.length; 0 <= _ref2 ? pos <= _ref2 : pos >= _ref2; 0 <= _ref2 ? pos++ : pos--) {
1183
1132
  ch = rest[pos];
1184
- if (ch === start) {
1185
- level += 1;
1186
- }
1133
+ if (ch === start) level += 1;
1187
1134
  if (ch === end) {
1188
1135
  if (level === 1) {
1189
1136
  break;
@@ -1198,20 +1145,16 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1198
1145
  attributes = '';
1199
1146
  assignment = rest;
1200
1147
  }
1201
- if (whitespace = (_ref2 = assignment.match(/^[<>]{0,2}/)) != null ? _ref2[0] : void 0) {
1148
+ if (whitespace = (_ref3 = assignment.match(/^[<>]{0,2}/)) != null ? _ref3[0] : void 0) {
1202
1149
  assignment = assignment.substring(whitespace.length);
1203
1150
  }
1204
- if (assignment[0] === ' ') {
1205
- assignment = assignment.substring(1);
1206
- }
1151
+ if (assignment[0] === ' ') assignment = assignment.substring(1);
1207
1152
  if (assignment && !assignment.match(/^(=|!=|&=|~)/)) {
1208
1153
  text = assignment.replace(/^ /, '');
1209
1154
  assignment = void 0;
1210
1155
  }
1211
1156
  if (whitespace) {
1212
- if (whitespace.indexOf('>') !== -1) {
1213
- this.wsRemoval.around = true;
1214
- }
1157
+ if (whitespace.indexOf('>') !== -1) this.wsRemoval.around = true;
1215
1158
  if (whitespace.indexOf('<') !== -1) {
1216
1159
  this.wsRemoval.inside = true;
1217
1160
  this.preserve = true;
@@ -1223,19 +1166,19 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1223
1166
  return {
1224
1167
  tag: tag ? tag[1] : 'div',
1225
1168
  ids: ids ? (function() {
1226
- var _j, _len, _results;
1169
+ var _i, _len, _results;
1227
1170
  _results = [];
1228
- for (_j = 0, _len = ids.length; _j < _len; _j++) {
1229
- id = ids[_j];
1171
+ for (_i = 0, _len = ids.length; _i < _len; _i++) {
1172
+ id = ids[_i];
1230
1173
  _results.push("'" + (id.substr(1)) + "'");
1231
1174
  }
1232
1175
  return _results;
1233
1176
  })() : void 0,
1234
1177
  classes: classes ? (function() {
1235
- var _j, _len, _results;
1178
+ var _i, _len, _results;
1236
1179
  _results = [];
1237
- for (_j = 0, _len = classes.length; _j < _len; _j++) {
1238
- klass = classes[_j];
1180
+ for (_i = 0, _len = classes.length; _i < _len; _i++) {
1181
+ klass = classes[_i];
1239
1182
  _results.push("'" + (klass.substr(1)) + "'");
1240
1183
  }
1241
1184
  return _results;
@@ -1250,11 +1193,9 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1250
1193
  };
1251
1194
 
1252
1195
  Haml.prototype.parseAttributes = function(exp) {
1253
- var attributes, ch, endPos, hasDataAttribute, inDataAttribute, key, keyValue, keys, level, marker, markers, pairs, pos, quoted, start, startPos, type, value, _i, _j, _len, _ref, _ref1, _ref2;
1196
+ var attributes, ch, endPos, hasDataAttribute, inDataAttribute, key, keyValue, keys, level, marker, markers, pairs, pos, quoted, start, startPos, type, value, _i, _len, _ref, _ref2, _ref3;
1254
1197
  attributes = {};
1255
- if (exp === void 0) {
1256
- return attributes;
1257
- }
1198
+ if (exp === void 0) return attributes;
1258
1199
  type = exp.substring(0, 1);
1259
1200
  exp = exp.replace(/(=|:|=>)\s*('([^\\']|\\\\|\\')*'|"([^\\"]|\\\\|\\")*")/g, function(match, type, value) {
1260
1201
  return type + (value != null ? value.replace(/(:|=|=>)/g, '\u0090$1') : void 0);
@@ -1269,7 +1210,7 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1269
1210
  startPos = 0;
1270
1211
  endPos = exp.length;
1271
1212
  }
1272
- for (pos = _i = startPos; startPos <= endPos ? _i < endPos : _i > endPos; pos = startPos <= endPos ? ++_i : --_i) {
1213
+ for (pos = startPos; startPos <= endPos ? pos < endPos : pos > endPos; startPos <= endPos ? pos++ : pos--) {
1273
1214
  ch = exp[pos];
1274
1215
  if (ch === '(') {
1275
1216
  level += 1;
@@ -1289,8 +1230,8 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1289
1230
  }
1290
1231
  }
1291
1232
  _ref = markers.reverse();
1292
- for (_j = 0, _len = _ref.length; _j < _len; _j++) {
1293
- marker = _ref[_j];
1233
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
1234
+ marker = _ref[_i];
1294
1235
  exp = exp.substring(0, marker.start) + exp.substring(marker.start, marker.end).replace(/(:|=|=>)/g, '\u0090$1') + exp.substring(marker.end);
1295
1236
  }
1296
1237
  switch (type) {
@@ -1305,20 +1246,16 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1305
1246
  hasDataAttribute = false;
1306
1247
  while (pairs.length) {
1307
1248
  keyValue = pairs.splice(0, 2);
1308
- key = (_ref1 = keyValue[0]) != null ? _ref1.replace(/^\s+|\s+$/g, '').replace(/^:/, '') : void 0;
1309
- if (quoted = key.match(/^("|')(.*)\1$/)) {
1310
- key = quoted[2];
1311
- }
1312
- value = (_ref2 = keyValue[1]) != null ? _ref2.replace(/^\s+|[\s,]+$/g, '').replace(/\u0090/g, '') : void 0;
1249
+ key = (_ref2 = keyValue[0]) != null ? _ref2.replace(/^\s+|\s+$/g, '').replace(/^:/, '') : void 0;
1250
+ if (quoted = key.match(/^("|')(.*)\1$/)) key = quoted[2];
1251
+ value = (_ref3 = keyValue[1]) != null ? _ref3.replace(/^\s+|[\s,]+$/g, '').replace(/\u0090/g, '') : void 0;
1313
1252
  if (key === 'data') {
1314
1253
  inDataAttribute = true;
1315
1254
  hasDataAttribute = true;
1316
1255
  } else if (key && value) {
1317
1256
  if (inDataAttribute) {
1318
1257
  key = "data-" + key;
1319
- if (/}\s*$/.test(value)) {
1320
- inDataAttribute = false;
1321
- }
1258
+ if (/}\s*$/.test(value)) inDataAttribute = false;
1322
1259
  }
1323
1260
  }
1324
1261
  switch (type) {
@@ -1329,9 +1266,7 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1329
1266
  attributes[key] = value.replace(/^\s+|[\s}]+$/g, '');
1330
1267
  }
1331
1268
  }
1332
- if (hasDataAttribute) {
1333
- delete attributes['data'];
1334
- }
1269
+ if (hasDataAttribute) delete attributes['data'];
1335
1270
  return attributes;
1336
1271
  };
1337
1272
 
@@ -1347,9 +1282,7 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1347
1282
  for (_i = 0, _len = _ref.length; _i < _len; _i++) {
1348
1283
  name = _ref[_i];
1349
1284
  name = this.wrapCode(name, true);
1350
- if (name.indexOf('#{') !== -1) {
1351
- hasDynamicClass = true;
1352
- }
1285
+ if (name.indexOf('#{') !== -1) hasDynamicClass = true;
1353
1286
  _results.push(name);
1354
1287
  }
1355
1288
  return _results;
@@ -1366,9 +1299,7 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1366
1299
  }
1367
1300
  tagParts.push("class='" + classes + "'");
1368
1301
  }
1369
- if (tokens.id) {
1370
- tagParts.push("id='" + tokens.id + "'");
1371
- }
1302
+ if (tokens.id) tagParts.push("id='" + tokens.id + "'");
1372
1303
  if (tokens.attributes) {
1373
1304
  _ref = tokens.attributes;
1374
1305
  for (key in _ref) {
@@ -1391,12 +1322,8 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1391
1322
 
1392
1323
  Haml.prototype.wrapCode = function(text, unwrap) {
1393
1324
  var quoted;
1394
- if (unwrap == null) {
1395
- unwrap = false;
1396
- }
1397
- if (!text) {
1398
- return;
1399
- }
1325
+ if (unwrap == null) unwrap = false;
1326
+ if (!text) return;
1400
1327
  if (!text.match(/^("|').*\1$/)) {
1401
1328
  if (this.escapeAttributes) {
1402
1329
  if (this.cleanValue) {
@@ -1412,25 +1339,15 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1412
1339
  }
1413
1340
  }
1414
1341
  }
1415
- if (unwrap) {
1416
- if (quoted = text.match(/^("|')(.*)\1$/)) {
1417
- text = quoted[2];
1418
- }
1419
- }
1342
+ if (unwrap) if (quoted = text.match(/^("|')(.*)\1$/)) text = quoted[2];
1420
1343
  return text;
1421
1344
  };
1422
1345
 
1423
1346
  Haml.prototype.quoteAndEscapeAttributeValue = function(value, code) {
1424
1347
  var escaped, hasDoubleQuotes, hasInterpolation, hasSingleQuotes, quoted, result, token, tokens, _i, _len;
1425
- if (code == null) {
1426
- code = false;
1427
- }
1428
- if (!value) {
1429
- return;
1430
- }
1431
- if (quoted = value.match(/^("|')(.*)\1$/)) {
1432
- value = quoted[2];
1433
- }
1348
+ if (code == null) code = false;
1349
+ if (!value) return;
1350
+ if (quoted = value.match(/^("|')(.*)\1$/)) value = quoted[2];
1434
1351
  tokens = this.splitInterpolations(value);
1435
1352
  hasSingleQuotes = false;
1436
1353
  hasDoubleQuotes = false;
@@ -1440,12 +1357,8 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1440
1357
  if (token.slice(0, 2) === '#{') {
1441
1358
  hasInterpolation = true;
1442
1359
  } else {
1443
- if (!hasSingleQuotes) {
1444
- hasSingleQuotes = token.indexOf("'") !== -1;
1445
- }
1446
- if (!hasDoubleQuotes) {
1447
- hasDoubleQuotes = token.indexOf('"') !== -1;
1448
- }
1360
+ if (!hasSingleQuotes) hasSingleQuotes = token.indexOf("'") !== -1;
1361
+ if (!hasDoubleQuotes) hasDoubleQuotes = token.indexOf('"') !== -1;
1449
1362
  }
1450
1363
  }
1451
1364
  if (code) {
@@ -1463,9 +1376,9 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1463
1376
  }
1464
1377
  if (hasDoubleQuotes && !hasSingleQuotes) {
1465
1378
  escaped = (function() {
1466
- var _j, _len1, _results;
1379
+ var _j, _len2, _results;
1467
1380
  _results = [];
1468
- for (_j = 0, _len1 = tokens.length; _j < _len1; _j++) {
1381
+ for (_j = 0, _len2 = tokens.length; _j < _len2; _j++) {
1469
1382
  token = tokens[_j];
1470
1383
  _results.push(escapeQuotes(token));
1471
1384
  }
@@ -1475,9 +1388,9 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1475
1388
  }
1476
1389
  if (hasSingleQuotes && hasDoubleQuotes) {
1477
1390
  escaped = (function() {
1478
- var _j, _len1, _results;
1391
+ var _j, _len2, _results;
1479
1392
  _results = [];
1480
- for (_j = 0, _len1 = tokens.length; _j < _len1; _j++) {
1393
+ for (_j = 0, _len2 = tokens.length; _j < _len2; _j++) {
1481
1394
  token = tokens[_j];
1482
1395
  _results.push(escapeQuotes(token).replace(/'/g, '&#39;'));
1483
1396
  }
@@ -1490,17 +1403,15 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1490
1403
  };
1491
1404
 
1492
1405
  Haml.prototype.splitInterpolations = function(value) {
1493
- var ch, ch2, level, pos, quoted, start, tokens, _i, _ref;
1406
+ var ch, ch2, level, pos, quoted, start, tokens, _ref;
1494
1407
  level = 0;
1495
1408
  start = 0;
1496
1409
  tokens = [];
1497
1410
  quoted = false;
1498
- for (pos = _i = 0, _ref = value.length; 0 <= _ref ? _i < _ref : _i > _ref; pos = 0 <= _ref ? ++_i : --_i) {
1411
+ for (pos = 0, _ref = value.length; 0 <= _ref ? pos < _ref : pos > _ref; 0 <= _ref ? pos++ : pos--) {
1499
1412
  ch = value[pos];
1500
1413
  ch2 = value.slice(pos, (pos + 1) + 1 || 9e9);
1501
- if (ch === '{') {
1502
- level += 1;
1503
- }
1414
+ if (ch === '{') level += 1;
1504
1415
  if (ch2 === '#{' && level === 0) {
1505
1416
  tokens.push(value.slice(start, pos));
1506
1417
  start = pos;
@@ -1552,26 +1463,25 @@ require.define("/nodes/haml.js", function (require, module, exports, __dirname,
1552
1463
 
1553
1464
  return Haml;
1554
1465
 
1555
- })(Node);
1466
+ })();
1556
1467
 
1557
1468
  }).call(this);
1558
1469
 
1559
1470
  });
1560
1471
 
1561
- require.define("/nodes/code.js", function (require, module, exports, __dirname, __filename) {
1472
+ require.define("/nodes/code.coffee", function (require, module, exports, __dirname, __filename) {
1562
1473
  (function() {
1563
- var Code, Node,
1564
- __hasProp = {}.hasOwnProperty,
1565
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
1474
+ var Code, Node;
1475
+ var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; };
1566
1476
 
1567
1477
  Node = require('./node');
1568
1478
 
1569
- module.exports = Code = (function(_super) {
1479
+ module.exports = Code = (function() {
1570
1480
 
1571
- __extends(Code, _super);
1481
+ __extends(Code, Node);
1572
1482
 
1573
1483
  function Code() {
1574
- return Code.__super__.constructor.apply(this, arguments);
1484
+ Code.__super__.constructor.apply(this, arguments);
1575
1485
  }
1576
1486
 
1577
1487
  Code.prototype.evaluate = function() {
@@ -1605,28 +1515,27 @@ require.define("/nodes/code.js", function (require, module, exports, __dirname,
1605
1515
 
1606
1516
  return Code;
1607
1517
 
1608
- })(Node);
1518
+ })();
1609
1519
 
1610
1520
  }).call(this);
1611
1521
 
1612
1522
  });
1613
1523
 
1614
- require.define("/nodes/comment.js", function (require, module, exports, __dirname, __filename) {
1524
+ require.define("/nodes/comment.coffee", function (require, module, exports, __dirname, __filename) {
1615
1525
  (function() {
1616
- var Comment, Node, escapeQuotes,
1617
- __hasProp = {}.hasOwnProperty,
1618
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
1526
+ var Comment, Node, escapeQuotes;
1527
+ var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; };
1619
1528
 
1620
1529
  Node = require('./node');
1621
1530
 
1622
1531
  escapeQuotes = require('../util/text').escapeQuotes;
1623
1532
 
1624
- module.exports = Comment = (function(_super) {
1533
+ module.exports = Comment = (function() {
1625
1534
 
1626
- __extends(Comment, _super);
1535
+ __extends(Comment, Node);
1627
1536
 
1628
1537
  function Comment() {
1629
- return Comment.__super__.constructor.apply(this, arguments);
1538
+ Comment.__super__.constructor.apply(this, arguments);
1630
1539
  }
1631
1540
 
1632
1541
  Comment.prototype.evaluate = function() {
@@ -1652,17 +1561,16 @@ require.define("/nodes/comment.js", function (require, module, exports, __dirnam
1652
1561
 
1653
1562
  return Comment;
1654
1563
 
1655
- })(Node);
1564
+ })();
1656
1565
 
1657
1566
  }).call(this);
1658
1567
 
1659
1568
  });
1660
1569
 
1661
- require.define("/nodes/filter.js", function (require, module, exports, __dirname, __filename) {
1570
+ require.define("/nodes/filter.coffee", function (require, module, exports, __dirname, __filename) {
1662
1571
  (function() {
1663
- var Filter, Node, unescapeQuotes, whitespace,
1664
- __hasProp = {}.hasOwnProperty,
1665
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
1572
+ var Filter, Node, unescapeQuotes, whitespace;
1573
+ var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; };
1666
1574
 
1667
1575
  Node = require('./node');
1668
1576
 
@@ -1670,12 +1578,12 @@ require.define("/nodes/filter.js", function (require, module, exports, __dirname
1670
1578
 
1671
1579
  unescapeQuotes = require('../util/text').unescapeQuotes;
1672
1580
 
1673
- module.exports = Filter = (function(_super) {
1581
+ module.exports = Filter = (function() {
1674
1582
 
1675
- __extends(Filter, _super);
1583
+ __extends(Filter, Node);
1676
1584
 
1677
1585
  function Filter() {
1678
- return Filter.__super__.constructor.apply(this, arguments);
1586
+ Filter.__super__.constructor.apply(this, arguments);
1679
1587
  }
1680
1588
 
1681
1589
  Filter.prototype.evaluate = function() {
@@ -1684,7 +1592,7 @@ require.define("/nodes/filter.js", function (require, module, exports, __dirname
1684
1592
  };
1685
1593
 
1686
1594
  Filter.prototype.render = function() {
1687
- var child, indent, output, preserve, _i, _j, _len, _len1, _ref, _ref1;
1595
+ var child, indent, output, preserve, _i, _j, _len, _len2, _ref, _ref2;
1688
1596
  output = [];
1689
1597
  switch (this.filter) {
1690
1598
  case 'escaped':
@@ -1696,9 +1604,9 @@ require.define("/nodes/filter.js", function (require, module, exports, __dirname
1696
1604
  break;
1697
1605
  case 'preserve':
1698
1606
  preserve = '';
1699
- _ref1 = this.children;
1700
- for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
1701
- child = _ref1[_j];
1607
+ _ref2 = this.children;
1608
+ for (_j = 0, _len2 = _ref2.length; _j < _len2; _j++) {
1609
+ child = _ref2[_j];
1702
1610
  preserve += "" + (child.render()[0].text) + "&#x000A;";
1703
1611
  }
1704
1612
  preserve = preserve.replace(/\&\#x000A;$/, '');
@@ -1718,9 +1626,7 @@ require.define("/nodes/filter.js", function (require, module, exports, __dirname
1718
1626
  }
1719
1627
  indent = this.format === 'xhtml' ? 2 : 1;
1720
1628
  this.renderFilterContent(indent, output);
1721
- if (this.format === 'xhtml') {
1722
- output.push(this.markText(' /*]]>*/'));
1723
- }
1629
+ if (this.format === 'xhtml') output.push(this.markText(' /*]]>*/'));
1724
1630
  output.push(this.markText('</style>'));
1725
1631
  break;
1726
1632
  case 'javascript':
@@ -1729,14 +1635,10 @@ require.define("/nodes/filter.js", function (require, module, exports, __dirname
1729
1635
  } else {
1730
1636
  output.push(this.markText('<script type=\'text/javascript\'>'));
1731
1637
  }
1732
- if (this.format === 'xhtml') {
1733
- output.push(this.markText(' //<![CDATA['));
1734
- }
1638
+ if (this.format === 'xhtml') output.push(this.markText(' //<![CDATA['));
1735
1639
  indent = this.format === 'xhtml' ? 2 : 1;
1736
1640
  this.renderFilterContent(indent, output);
1737
- if (this.format === 'xhtml') {
1738
- output.push(this.markText(' //]]>'));
1739
- }
1641
+ if (this.format === 'xhtml') output.push(this.markText(' //]]>'));
1740
1642
  output.push(this.markText('</script>'));
1741
1643
  break;
1742
1644
  case 'cdata':
@@ -1751,10 +1653,8 @@ require.define("/nodes/filter.js", function (require, module, exports, __dirname
1751
1653
  };
1752
1654
 
1753
1655
  Filter.prototype.renderFilterContent = function(indent, output, type) {
1754
- var child, content, e, empty, line, _i, _j, _k, _len, _len1, _ref, _results;
1755
- if (type == null) {
1756
- type = 'text';
1757
- }
1656
+ var child, content, e, empty, line, _i, _j, _len, _len2, _ref, _results;
1657
+ if (type == null) type = 'text';
1758
1658
  content = [];
1759
1659
  empty = 0;
1760
1660
  _ref = this.children;
@@ -1763,14 +1663,14 @@ require.define("/nodes/filter.js", function (require, module, exports, __dirname
1763
1663
  content.push(child.render()[0].text);
1764
1664
  }
1765
1665
  _results = [];
1766
- for (_j = 0, _len1 = content.length; _j < _len1; _j++) {
1666
+ for (_j = 0, _len2 = content.length; _j < _len2; _j++) {
1767
1667
  line = content[_j];
1768
1668
  if (line === '') {
1769
1669
  _results.push(empty += 1);
1770
1670
  } else {
1771
1671
  switch (type) {
1772
1672
  case 'text':
1773
- for (e = _k = 0; 0 <= empty ? _k < empty : _k > empty; e = 0 <= empty ? ++_k : --_k) {
1673
+ for (e = 0; 0 <= empty ? e < empty : e > empty; 0 <= empty ? e++ : e--) {
1774
1674
  output.push(this.markText(""));
1775
1675
  }
1776
1676
  output.push(this.markText("" + (whitespace(indent)) + line));
@@ -1786,7 +1686,7 @@ require.define("/nodes/filter.js", function (require, module, exports, __dirname
1786
1686
 
1787
1687
  return Filter;
1788
1688
 
1789
- })(Node);
1689
+ })();
1790
1690
 
1791
1691
  }).call(this);
1792
1692
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml_coffee_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-10 00:00:00.000000000 Z
12
+ date: 2012-08-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: coffee-script
@@ -108,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  segments:
110
110
  - 0
111
- hash: 625647184546627191
111
+ hash: 2912896111803617098
112
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements: