﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27022	some DjangoTemplates builtin tags misparse lack of whitespace between variable name and boolean operator in arguments	Peter Lai	nobody	"The `django.DjangoTemplates` template backend is unable to parse a comparison operator when there is no whitespace around the operator using builtin tag `if`:

{{{#!python
{% if foo=='bar' %}
<!-- do something -->
{% endif %}
}}}

raises:

{{{
TemplateSyntaxError at url

Could not parse the remainder: '=='bar'' from 'foo=='bar''
}}}

At least one space is required on both sides of the `==` operator (So `foo =='bar'` and `foo== 'bar'` throws `Could not parse the remainder: '=='bar'' from '=='bar''` and `Could not parse the remainder: '==' from 'foo=='`, respectively). More than one space is acceptable.

This seems to affect the following boolean operators: `==`, `!=`, `<`, `>`, `<=`, `>=`. My guess is the boolean expression tokenizer in DjangoTemplates first tries split(' ') then ultimately evals ![0]![1]![2] (but I haven't actually looked at the source to verify this).
"	Bug	closed	Template system	1.10	Normal	wontfix	tags, arguments, operators, whitespace		Accepted	0	0	0	0	0	0
