MCPcopy
hub / github.com/janl/mustache.js / stripSpace

Function stripSpace

mustache.js:123–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 1

parseTemplateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected