| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| 3 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 4 |
|
| 5 |
<html xmlns:tal="http://purl.org/petal/1.0/"> |
| 6 |
<body> |
| 7 |
<p> |
| 8 |
|
| 9 |
decode1: <span tal:if="decode:$str">this appears to do nothing; should we catch it and throw an error?</span> |
| 10 |
decode2: <span tal:if="decode:$str 'Flipper'" tal:replace="false">false</span> |
| 11 |
|
| 12 |
|
| 13 |
decode2a: <span tal:replace="decode:$str 'Flipper'">false</span> |
| 14 |
decode2b: <span tal:replace="decode:$str 'Flip'">false</span> |
| 15 |
|
| 16 |
|
| 17 |
decode3: <span tal:if="decode:$str 'Flipper' 1" tal:replace="string: true">true</span> |
| 18 |
|
| 19 |
|
| 20 |
decode4: <span tal:if="decode:$str 'Flipper' 0" tal:replace="string: false">return false</span> |
| 21 |
decode5: <span tal:if="decode:$str 'Flipper' false" tal:replace="string: false_string">false</span> |
| 22 |
|
| 23 |
|
| 24 |
decode6: <span tal:replace="decode:$str 'Dip' 'Heavy' 'Metal'">true</span> |
| 25 |
decode7: <span tal:if="decode:$str 'Flipped' 1">false</span> |
| 26 |
decode8: <span tal:if="decode:$str 'Flipped' 0 1" tal:replace="string:true">true</span> |
| 27 |
|
| 28 |
|
| 29 |
decode9: <span tal:replace="decode:$str 'Flipped' 'false' 'Flipper' 'true'">true</span> |
| 30 |
decode10: <span tal:replace="decode:$str 'Flipped' 'false' 'Flipper' 100">true</span> |
| 31 |
decode11: <span tal:replace="decode:$str 'Flipped' 'false' 'Clipper' 'true' 250">true</span> |
| 32 |
|
| 33 |
|
| 34 |
decode12: <span tal:if="decode:$str $str2 1" tal:replace="string:false">false</span> |
| 35 |
decode13: <span tal:if="decode:$str $str 1" tal:replace="string:true">true</span> |
| 36 |
|
| 37 |
|
| 38 |
decode14: <span tal:replace="decode:$str $str 1.">true</span> |
| 39 |
decode15: <span tal:replace="decode:$str $str .1">true</span> |
| 40 |
|
| 41 |
</p> |
| 42 |
</body> |
| 43 |
</html> |
| 44 |
|