()
| 121 | // Strips all whitespace tokens array for the current line |
| 122 | // if there was a {{#tag}} on it and otherwise only space. |
| 123 | function stripSpace () { |
| 124 | if (hasTag && !nonSpace) { |
| 125 | while (spaces.length) |
| 126 | delete tokens[spaces.pop()]; |
| 127 | } else { |
| 128 | spaces = []; |
| 129 | } |
| 130 | |
| 131 | hasTag = false; |
| 132 | nonSpace = false; |
| 133 | } |
| 134 | |
| 135 | var openingTagRe, closingTagRe, closingCurlyRe; |
| 136 | function compileTags (tagsToCompile) { |