()
| 113 | // Strips all whitespace tokens array for the current line |
| 114 | // if there was a {{#tag}} on it and otherwise only space. |
| 115 | function stripSpace () { |
| 116 | if (hasTag && !nonSpace) { |
| 117 | while (spaces.length) |
| 118 | delete tokens[spaces.pop()]; |
| 119 | } else { |
| 120 | spaces = []; |
| 121 | } |
| 122 | |
| 123 | hasTag = false; |
| 124 | nonSpace = false; |
| 125 | } |
| 126 | |
| 127 | var openingTagRe, closingTagRe, closingCurlyRe; |
| 128 | function compileTags (tagsToCompile) { |