Small tpl with stange bug
<html>
<head>
{{!rejetto}}
<script language="javascript" type="text/javascript">
function changewhere(code){
switch (code)
{
case 1 : if (true) {mycode|=1;} else {mycode^=1;}; break;
case 2 : if (true) {mycode|=2;} else {mycode^=2;}; break;
case 3 : if (true) {mycode|=2;} else {mycode^=2;}; break;
case 4 : if (true) {mycode|=2;} else {mycode^=2;}; break;
default : mycode=0; break;
}
}
</script>
</head>
<body>
{{!one}} {{!two}} {{!three}} {{!four}} {{!end}}
</body>
</html>
web page: on build 163
rejetto {{!one}} {{!two}} {{!three}} four end
same by deleting one line
<html>
<head>
{{!rejetto}}
<script language="javascript" type="text/javascript">
function changewhere(code){
switch (code)
{
case 1 : if (true) {mycode|=1;} else {mycode^=1;}; break;
case 2 : if (true) {mycode|=2;} else {mycode^=2;}; break;
case 3 : if (true) {mycode|=2;} else {mycode^=2;}; break;
default : mycode=0; break;
}
}
</script>
</head>
<body>
{{!one}} {{!two}} {{!three}} {{!four}} {{!end}}
</body>
</html>
web page: on build 163
rejetto {{!one}} {{!two}} three four end
It seems that the usage of several ¦ in this context is the cause of bug when he is beetwen { }
<html>
<head>
{{!rejetto}}
<script language="javascript" type="text/javascript">
function changewhere(code){
switch (code)
{
case 1 : if (true) {mycode|=1;} else {mycode|=1;}; break;
case 2 : if (true) {mycode|=2;} else {mycode=2;}; break;
case 3 : if (true) {mycode=2;} else {mycode=2;}; break;
default : mycode=0; break;
}
}
</script>
</head>
<body>
{{!one}} {{!two}} {{!three}} {{!four}} {{!end}}
</body>
</html>
web page: on build
160macro error: !rejetto
{{!one}} {{!two}}
macro error: !three
macro error: !four
macro error: !endbut not
macro error: !rejetto
macro error: !one
macro error: !two
macro error: !three
macro error: !four
macro error: !endweb page: on build 146
{{!one}} {{!two}} {{!three}} {{!four}} {{!end}}
why is the question!!