2024-09-06 02:53:28 +00:00
|
|
|
PATH=/
|
2024-09-06 03:49:32 +00:00
|
|
|
HTML='''
|
2024-11-20 07:05:29 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
color: #FFF;
|
|
|
|
background-color: #333;
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
color: #AAF;
|
|
|
|
}
|
|
|
|
a:link {
|
|
|
|
color: #AAF;
|
|
|
|
}
|
|
|
|
a:visited {
|
|
|
|
color: #88B;
|
|
|
|
}
|
|
|
|
a:focus a:hover {
|
|
|
|
color: #DDF;
|
|
|
|
}
|
|
|
|
a:active {
|
|
|
|
color: #FFF;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h2>Test IF/FOREACH Expr</h2>
|
|
|
|
|
|
|
|
Outer IF<br>
|
|
|
|
<pre>
|
|
|
|
{{{!IF ThisValue==true}}}
|
|
|
|
ThisValue is <b>true</b>.<br>
|
|
|
|
{{{!FOREACH ArrayValue}}}
|
|
|
|
{{{!IF ThisOtherValue==true}}}
|
|
|
|
{{{ArrayValue}}}<br>
|
|
|
|
ThisOtherValue is <b>true</b>.<br>
|
|
|
|
{{{Var}}}<br>
|
2024-11-18 11:10:45 +00:00
|
|
|
{{{!ELSE}}}
|
2024-11-20 07:05:29 +00:00
|
|
|
{{{ArrayValue}}}<br>
|
|
|
|
ThisOtherValue is <b>NOT true</b>.<br>
|
|
|
|
{{{Var}}}<br>
|
2024-11-18 11:10:45 +00:00
|
|
|
{{{!ENDIF}}}
|
2024-11-19 11:53:11 +00:00
|
|
|
{{{!ENDFOREACH}}}
|
2024-11-20 07:05:29 +00:00
|
|
|
{{{!ELSE}}}
|
|
|
|
ThisValue is <b>NOT true</b>.<br>
|
|
|
|
{{{!FOREACH ArrayValueSecond}}}
|
|
|
|
{{{!IF ThisOtherValue==true}}}
|
|
|
|
{{{ArrayValueSecond}}}<br>
|
|
|
|
ThisOtherValue is <b>true</b>.<br>
|
|
|
|
{{{Var}}}<br>
|
|
|
|
{{{!ELSE}}}
|
|
|
|
{{{ArrayValueSecond}}}<br>
|
|
|
|
ThisOtherValue is <b>NOT true</b>.<br>
|
|
|
|
{{{Var}}}<br>
|
|
|
|
{{{!ENDIF}}}
|
|
|
|
{{{!ENDFOREACH}}}
|
|
|
|
{{{!ENDIF}}}
|
|
|
|
</pre><br>
|
|
|
|
|
|
|
|
Outer FOREACH<br>
|
|
|
|
<pre>
|
|
|
|
{{{!FOREACH ArrayValue}}}
|
|
|
|
{{{ArrayValue}}}<br>
|
|
|
|
{{{!IF ThisValue==true}}}
|
|
|
|
ThisValue is <b>true</b>.<br>
|
|
|
|
{{{!FOREACH ArrayValueSecond}}}
|
|
|
|
{{{ArrayValueSecond}}}<br>
|
|
|
|
{{{!IF ThisOtherValue==true}}}
|
|
|
|
ThisOtherValue is <b>true</b>.<br>
|
|
|
|
{{{Var}}}<br>
|
|
|
|
{{{!ELSE}}}
|
|
|
|
ThisOtherValue is <b>NOT true</b>.<br>
|
|
|
|
{{{Var}}}<br>
|
|
|
|
{{{!ENDIF}}}
|
|
|
|
{{{!ENDFOREACH}}}
|
|
|
|
{{{!ELSE}}}
|
|
|
|
ThisValue is <b>NOT true</b>.<br>
|
|
|
|
{{{!FOREACH ArrayValueSecond}}}
|
|
|
|
{{{ArrayValueSecond}}}<br>
|
|
|
|
{{{!IF ThisOtherValue==true}}}
|
|
|
|
ThisOtherValue is <b>true</b>.<br>
|
|
|
|
{{{Var}}}<br>
|
|
|
|
{{{!ELSE}}}
|
|
|
|
ThisOtherValue is <b>NOT true</b>.<br>
|
|
|
|
{{{Var}}}<br>
|
|
|
|
{{{!ENDIF}}}
|
|
|
|
{{{!ENDFOREACH}}}
|
|
|
|
{{{!ENDIF}}}
|
|
|
|
{{{!ENDFOREACH}}}
|
2024-11-20 08:12:10 +00:00
|
|
|
</pre><br>
|
|
|
|
|
|
|
|
Nested FOREACH:<br>
|
|
|
|
<pre>
|
|
|
|
{{{!FOREACH ArrayValue}}}
|
|
|
|
{{{ArrayValue}}}
|
|
|
|
{{{!FOREACH ArrayValueSecond}}}
|
|
|
|
{{{ArrayValueSecond}}}
|
|
|
|
{{{!FOREACH ArrayValueThird}}}
|
|
|
|
{{{ArrayValueThird}}}
|
|
|
|
{{{!FOREACH ArrayValueFourth}}}
|
|
|
|
{{{ArrayValueFourth}}}
|
2024-11-21 05:05:33 +00:00
|
|
|
{{{!FOREACH Each_FILE}}}
|
|
|
|
{{{Each_FILE}}}
|
|
|
|
{{{!ENDFOREACH}}}
|
2024-11-20 08:12:10 +00:00
|
|
|
{{{!ENDFOREACH}}}
|
|
|
|
{{{!ENDFOREACH}}}
|
|
|
|
{{{!ENDFOREACH}}}
|
|
|
|
{{{!ENDFOREACH}}}
|
2024-11-20 07:05:29 +00:00
|
|
|
</pre>
|
2024-11-20 08:12:10 +00:00
|
|
|
|
|
|
|
<br><h2><a href="/inner">inner</a></h2>
|
2024-11-20 07:05:29 +00:00
|
|
|
</body>
|
|
|
|
</html>
|
2024-09-06 02:53:28 +00:00
|
|
|
'''
|
|
|
|
|
|
|
|
Var='''Test var value'''
|
2024-11-19 11:53:11 +00:00
|
|
|
ThisValue=true
|
|
|
|
ThisOtherValue=true
|
2024-11-18 08:07:07 +00:00
|
|
|
|
2024-11-20 07:05:29 +00:00
|
|
|
ArrayValue=1_IDX_Zero
|
|
|
|
ArrayValue=1_IDX_One
|
|
|
|
ArrayValue=1_IDX_Two
|
|
|
|
|
|
|
|
ArrayValueSecond=2_IDX_Zero
|
|
|
|
ArrayValueSecond=2_IDX_One
|
|
|
|
ArrayValueSecond=2_IDX_Two
|
2024-09-06 03:42:18 +00:00
|
|
|
|
2024-11-20 08:12:10 +00:00
|
|
|
ArrayValueThird=3_IDX_Zero
|
|
|
|
ArrayValueThird=3_IDX_One
|
|
|
|
ArrayValueThird=3_IDX_Two
|
|
|
|
|
|
|
|
ArrayValueFourth=4_IDX_Zero
|
|
|
|
ArrayValueFourth=4_IDX_One
|
|
|
|
ArrayValueFourth=4_IDX_Two
|
|
|
|
|
2024-11-19 11:53:11 +00:00
|
|
|
EachTestHead='''First Entry Head'''
|
|
|
|
EachTestMid='''First Entry Mid'''
|
|
|
|
EachTestTail='''First Entry Tail'''
|
|
|
|
|
|
|
|
EachTestHead='''Second Entry Head'''
|
|
|
|
EachTestMid='''Second Entry Mid'''
|
|
|
|
EachTestTail='''Second Entry Tail'''
|
|
|
|
|
|
|
|
EachTestHead='''Third Entry Head'''
|
|
|
|
EachTestMid='''Third Entry Mid'''
|
|
|
|
EachTestTail='''Third Entry Tail'''
|
|
|
|
|
2024-11-21 05:05:33 +00:00
|
|
|
Each_FILE='''example_config/each_file_zero.html'''
|
|
|
|
Each_FILE='''example_config/each_file_one.html'''
|
|
|
|
Each_FILE='''example_config/each_file_two.html'''
|
|
|
|
|
2024-09-06 03:42:18 +00:00
|
|
|
PATH=/inner
|
|
|
|
HTML_FILE='''example_config/inner.html'''
|
|
|
|
VAR_FILE='''example_config/var.html'''
|
2024-09-06 06:55:21 +00:00
|
|
|
|
|
|
|
PATH=/error
|
2024-09-24 05:53:28 +00:00
|
|
|
|
|
|
|
PATH=/inner/further
|
|
|
|
HTML='''
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
color: #FFF;
|
|
|
|
background-color: #333;
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
color: #AAF;
|
|
|
|
}
|
|
|
|
a:link {
|
|
|
|
color: #AAF;
|
|
|
|
}
|
|
|
|
a:visited {
|
|
|
|
color: #88B;
|
|
|
|
}
|
|
|
|
a:focus a:hover {
|
|
|
|
color: #DDF;
|
|
|
|
}
|
|
|
|
a:active {
|
|
|
|
color: #FFF;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Nested inner: further<h1>
|
|
|
|
{{{VAR}}}
|
|
|
|
<br>
|
2024-10-30 05:17:49 +00:00
|
|
|
<img src="/silly.jpg" />
|
|
|
|
<br>
|
2024-09-24 05:53:28 +00:00
|
|
|
<a href="/inner">back</a>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
'''
|
|
|
|
VAR='''yep'''
|