--- Begin Message ---
Hi

Been playing with phptal_lint, and noticed something odd.

example code 1:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

<html>
<head>
</head>
<body>
    <div tal:content="example: test"></div>
</body>
</html>

Output:

PHPTAL Lint 1.0 (PHPTAL 1_2_0)
S

Checked 1 file(s).
No errors found!


Example code 2:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

<html>
<head>
</head>
<body>
    <div tal:content="example2: test"></div>
</body>
</html>

Output:

PHPTAL Lint 1.0 (PHPTAL 1_2_0)
E

Checked 1 file(s).
Found 1 error(s):
In .:
test.xhtml: Invalid TALES path: 'example2: test', expected variable
name. Complex expressions need php: modifier. (line 5)

My question is, why does it not detect example: test, but it detects
example2: test? I am not including any includes in these tests.


--- End Message ---
_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to