Stephen Seo
d46a323b15
Some checks failed
Run Unit Tests / build-and-run-unit-tests (push) Failing after 4s
TODO: Figure out nested FOREACH or abandon that feature.
94 lines
1.6 KiB
Text
94 lines
1.6 KiB
Text
PATH=/
|
|
HTML='''
|
|
<h4>For Each test:</h4><br>
|
|
{{{!FOREACH EachTestHead!EachTestMid!EachTestTail}}}
|
|
{{{!INDEX ArrayValue[0]}}}
|
|
<br>
|
|
{{{EachTestHead}}}
|
|
<br>
|
|
{{{!INDEX ArrayValue[1]}}}
|
|
<br>
|
|
{{{EachTestMid}}}
|
|
<br>
|
|
{{{!IF ThisValue==true}}}
|
|
ThisValue is <b>true</b>.
|
|
{{{!IF ThisOtherValue==true}}}
|
|
ThisOtherValue is true.
|
|
{{{!ELSE}}}
|
|
ThisOtherValue is false.
|
|
{{{!ENDIF}}}
|
|
{{{!ELSE}}}
|
|
ThisValue is <b>NOT true</b>.
|
|
{{{!ENDIF}}}
|
|
<br>
|
|
{{{EachTestTail}}}
|
|
<br>
|
|
{{{!INDEX ArrayValue[2]}}}
|
|
<br>
|
|
{{{!ENDFOREACH}}}
|
|
</body>
|
|
'''
|
|
|
|
Var='''Test var value'''
|
|
ThisValue=true
|
|
ThisOtherValue=true
|
|
|
|
ArrayValue=One_IDX_Zero
|
|
ArrayValue=Two_IDX_One
|
|
ArrayValue=Three_IDX_Two
|
|
|
|
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'''
|
|
|
|
PATH=/inner
|
|
HTML_FILE='''example_config/inner.html'''
|
|
VAR_FILE='''example_config/var.html'''
|
|
|
|
PATH=/error
|
|
|
|
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>
|
|
<img src="/silly.jpg" />
|
|
<br>
|
|
<a href="/inner">back</a>
|
|
</body>
|
|
</html>
|
|
'''
|
|
VAR='''yep'''
|