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': |