DebugClients/Python/coverage/templite.py

branch
maintenance
changeset 6273
0daf79d65080
parent 6219
d6c795b5ce33
equal deleted inserted replaced
6207:0a74c1efab70 6273:0daf79d65080
168 continue 168 continue
169 elif token.startswith('{{'): 169 elif token.startswith('{{'):
170 # An expression to evaluate. 170 # An expression to evaluate.
171 expr = self._expr_code(token[start:end].strip()) 171 expr = self._expr_code(token[start:end].strip())
172 buffered.append("to_str(%s)" % expr) 172 buffered.append("to_str(%s)" % expr)
173 elif token.startswith('{%'): 173 else:
174 # token.startswith('{%')
174 # Action tag: split into words and parse further. 175 # Action tag: split into words and parse further.
175 flush_output() 176 flush_output()
176 177
177 words = token[start:end].strip().split() 178 words = token[start:end].strip().split()
178 if words[0] == 'if': 179 if words[0] == 'if':

eric ide

mercurial