Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

< bug #15

Open
hrbzcj opened this issue Aug 2, 2017 · 5 comments
Open

< bug #15

hrbzcj opened this issue Aug 2, 2017 · 5 comments
Assignees

Comments

@hrbzcj
Copy link

hrbzcj commented Aug 2, 2017

example: ${5 < 4}

@lck
Copy link
Owner

lck commented Aug 2, 2017

this should work, can you post your template ? thanks

@lck lck self-assigned this Aug 2, 2017
@hrbzcj
Copy link
Author

hrbzcj commented Aug 3, 2017

Thanks for replying.(My English is poor.)

When the template is:

<div xmlns:tal="http://xml.zope.org/namespaces/tal">
${5 > 4}
</div>

The output is: True

When the template is:

<div xmlns:tal="http://xml.zope.org/namespaces/tal">
${5 < 4}
</div>

The output is: ${5 < 4}
So the question is, once appear "<", the ${expression} will output it's self.

@hrbzcj
Copy link
Author

hrbzcj commented Aug 4, 2017

another bug:
metal:fill-param='change "alert(3);"'
when the string param's value has “;”, it gose wrong.

@lck
Copy link
Owner

lck commented Aug 4, 2017

regarding to semicolons in fill-param expressions: If you want to include a semicolon (”;”) in an expression, it must be escaped by doubling it (”;;”). I will include this note in documentation.

@hrbzcj
Copy link
Author

hrbzcj commented Aug 7, 2017

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants