if 'variable' in ast:\r
return parse_variable(ast)\r
\r
- if 'comparator' in ast:\r
- return parse_conditional_expression_comparator(ast)\r
+ if 'operator' in ast:\r
+ return parse_conditional_expression_operator(ast)\r
\r
if 'concatenate' in ast:\r
return parse_concatenate_expression(ast)\r
\r
return None\r
\r
-def parse_conditional_expression_comparator(ast):\r
+def parse_conditional_expression_operator(ast):\r
operand_map = {\r
'>': 'gt',\r
'>=': 'gteq',\r
parse_variable(ast['left']),\r
[\r
nodes.Operand(\r
- operand_map[ast['comparator']],\r
+ operand_map.get(ast['operator'], ast['operator']),\r
parse_variable(ast['right'])\r
)\r
],\r
</ul>\r
{{ "[{}]".format(page.title) if page.title }}\r
{% extends layout_template if layout_template is defined else 'master.html' %}\r
-{{ "Hello " ~ name ~ "!" }}
\ No newline at end of file
+{{ "Hello " ~ name ~ "!" }}\r
+{{ 1 in [1, 2, 3] }}
\ No newline at end of file