<%%ESSI::OUTPUT_TYPE%%> : "text/html" <%%ESSI::TEMPLATE_PATH%%> : "/home/project-web/diml/htdocs/support/test" <%%ESSI::INVOKE_PATH%%> : "" <%%ESSI::VERSION%%> : "MULTI 3.1_001_nocache 08/01/2005" <%%ESSI::AUTHOR%%> : "V. FREMAUX"
<%%FORM::session%%> : ""
<TEMPLATE ID="aTemplate"> a template declaration </TEMPLATE> <%%aTemplate%%> : " a template declaration " Syntax tolerance <% %aTemplate% %> : " a template declaration "
<TEMPLATE ID="FUNCTION()"> a special "function-like" naming </TEMPLATE> <%%FUNCTION()%%> : " a special "function-like" naming "
<TEMPLATE ID="MULTIPLE::SCOPED::VARIABLE"> a "scoped" naming </TEMPLATE> <%%MULTIPLE::SCOPED::VARIABLE%%> : " a "scoped" naming "
<TEMPLATE ID="BUZZY-çù^%£$"> somewhat strange, is'nt it ? </TEMPLATE> <%%BUZZY-çù^%£$%%> : " somewhat strange, is'nt it ? "
<TEMPLATE ID="aTemplateTooLong" INLINE> a template declaration wich is too long to fit into available space </TEMPLATE> <TEMPLATE ID="aTemplateTooShort" INLINE> zip! </TEMPLATE> <%%aTemplateNull DEFAULT="No Value"%%> : "No Value" <%%aTemplateTooLong MAXLENGTH="20"%%> : "a template declarati..." <%%aTemplateTooShort MINLENGTH="20"%%> : "zip! "
<TEMPLATE ID="aTemplateInline" INLINE> a template declaration </TEMPLATE> <%%aTemplateInline%%> : "a template declaration"
<TEMPLATE ID="aTemplateStatic" STATIC> a template declaration holding <%%VARIABLE%%> </TEMPLATE> <TEMPLATE ID="aTemplateNonStatic"> a template declaration holding <%%VARIABLE%%> </TEMPLATE> <%set %VARIABLE% = "variables" %> <%%aTemplateStatic%%> : " a template declaration holding " <%set %VARIABLE% = "other variables" %> <%%aTemplateStatic%%> : " a template declaration holding " </TEMPLATE><%set %VARIABLE% = "variables" %> <%%aTemplateNonStatic%%> : " a template declaration holding variables " <%set %VARIABLE% = "other variables" %> <%%aTemplateNonStatic%%> : " a template declaration holding other variables "
<%set %simpleVar% = "adata" %> <%%simpleVar%%> = "adata" <%set %_underscored% = "underscore" %> <%%_undescored%%> = "underscore" <%set %@exotic!?-{}% = "is this really usefull ?" %> <%%@exotic!?-{}%%> = "is this really usefull ?" <%set %functionLike()% = "afunction" %> <%%functionLike()%%> = "afunction" <%set %SCOPE::scoped% = "a scoped var" %> <%%SCOPE::scoped%%> = "a scoped var" <%eval %simpleVar% = "evaluated adata" %> <%%simpleVar%%> = "evaluated adata" <%eval %dynamicVar% = "this is a <%%simpleVar%%>" %> <%%dynamicVar%%> = "this is a evaluated adata" <%eval %_underscored% = "this is an evaluated <%%_underscored%%>" %> <%%_undescored%%> = "this is an evaluated underscore"
<%set %simpleVar% = "" %> <%%simpleVar%%> = ""
<%eval %_underscored% = "" %> <%%_underscored%%> = ""
<%set %embedded% = "embedded and escaped" %> <%set %NewSetVariable% = "a new variable that contains <%%embedded%%> calls" %> <%eval %NewEvaluatedVariable% = "a new variable that contains <%%embedded%%> calls" %> <%%embedded%%> : "embedded and escaped" <%%NewSetVariable%%> : "a new variable that contains embedded and escaped calls" <%%NewEvaluatedVariable%%> : "a new variable that contains embedded and escaped calls" <%set %embedded% = "changed content" %> <%%NewSetVariable%%> : "a new variable that contains changed content calls" <%%NewEvaluatedVariable%%> : "a new variable that contains embedded and escaped calls"
<%set %TABLE1§0% = "zero" %> <%set %TABLE1§1% = "one" %> <%set %TABLE1§2% = "two" %> <%set %TABLE1§3% = "three" %> <%set %TABLE1§4% = "four" %> <%set %TABLE1§5% = "five" %> <TEMPLATE ID="SIMPLE_SCAN" INLINE> "<%%TABLE1[]%%>" </TEMPLATE> <%%SIMPLE_SCAN[4]%%> = ""zero" "one" "two" "three" "
<%%TABLE1§I%%> : "4" (from last test) <%%TABLE1[]%%> : "four" <%%TABLE1[-1]%%> : "three" <%%TABLE1[+1]%%> : "three"
<%set %INDIRECTION% = "3" %>
<%%TABLE1[%INDIRECTION%]%%> : "three"
<%%TABLE1§I%%> : "4" (from last test) <%rewind %TABLE1% %> <%%TABLE1§I%%> : "0" <%next %TABLE1% %> <%%TABLE1§I%%> : "1" <%next %TABLE1% %> <%%TABLE1§I%%> : "2" <%back %TABLE1% %> <%%TABLE1§I%%> : "1" <%back %TABLE1% %> <%%TABLE1§I%%> : "0"
<%rewind %SIMPLE_SCAN% %> <%%SIMPLE_SCAN§I%%> : "0" <%set %SIMPLE_SCAN§C% = "6" %> <%%SIMPLE_SCAN[*]%%> = ""zero" "one" "two" "three" "four" "five" "
<%set %TABLE§0§0% = "A0" %> <%set %TABLE§1§0% = "A1" %> <%set %TABLE§2§0% = "A2" %> <%set %TABLE§3§0% = "A3" %> <%set %TABLE§4§0% = "A4" %> <%set %TABLE§0§1% = "B0" %> <%set %TABLE§1§1% = "B1" %> <%set %TABLE§2§1% = "B2" %> <%set %TABLE§3§1% = "B3" %> <%set %TABLE§4§1% = "B4" %> <%set %TABLE§0§2% = "C0" %> <%set %TABLE§1§2% = "C1" %> <%set %TABLE§2§2% = "C2" %> <%set %TABLE§3§2% = "C3" %> <%set %TABLE§4§2% = "C4" %> <%set %TABLE§0§3% = "D0" %> <%set %TABLE§1§3% = "D1" %> <%set %TABLE§2§3% = "D2" %> <%set %TABLE§3§3% = "D3" %> <%set %TABLE§4§3% = "D4" %> <%set %TABLE§0§4% = "E0" %> <%set %TABLE§1§4% = "E1" %> <%set %TABLE§2§4% = "E2" %> <%set %TABLE§3§4% = "E3" %> <%set %TABLE§4§4% = "E4" %> <TEMPLATE ID="ROWS" INLINE> <%%CELLS[4]%%> </TEMPLATE> <TEMPLATE ID="CELLS" INLINE> "<%%TABLE[][]%%>" </TEMPLATE> <%%ROWS[4]%%> = " "A0" "A1" "A2" "A3" "B0" "B1" "B2" "B3" "C0" "C1" "C2" "C3" "D0" "D1" "D2" "D3" "
<%%TABLE§I%%> : "0" (from last test) <%%TABLE§I§I%%> : "4" (from last test) <%%TABLE[][]%%> : "E0" <%%TABLE[-1][-1]%%> : "" <%%TABLE[+1][+1]%%> : ""
<%%TABLE§I%%> : "0" (from last test) <%%TABLE§I§I%%> : "4" (from last test) <%rewind %TABLE% %> <%%TABLE§I%%> : "0" <%%TABLE§I§I%%> : "0" <%next %TABLE% %> <%%TABLE§I%%> : "1" <%%TABLE§I§I%%> : "0" <%next %TABLE% %> <%%TABLE§I%%> : "2" <%%TABLE§I§I%%> : "0" <%next %TABLE% %> <%%TABLE§I%%> : "3" <%%TABLE§I§I%%> : "0" <%next %TABLE% %> <%%TABLE§I%%> : "4" <%%TABLE§I§I%%> : "0" <%next %TABLE% %> <%%TABLE§I%%> : "5" <%%TABLE§I§I%%> : "0" <%back %TABLE% %> <%%TABLE§I%%> : "4" <%%TABLE§I§I%%> : "0" <%back %TABLE% %> <%%TABLE§I%%> : "3" <%%TABLE§I§I%%> : "0" <%back %TABLE% %> <%%TABLE§I%%> : "2" <%%TABLE§I§I%%> : "0" <%back %TABLE% %> <%%TABLE§I%%> : "1" <%%TABLE§I§I%%> : "0" <%back %TABLE% %> <%%TABLE§I%%> : "0" <%%TABLE§I§I%%> : "0"
<%set %TABLE§C% = "4" %> <%set %TABLE§C§C% = "4" %> <%%TABLE§I%%> : "0" (from last test) <%%TABLE§I§I%%> : "0" (from last test) <%rewind %TABLE% %> <%%TABLE§I%%> : "0" <%%TABLE§I§I%%> : "0" <%next %TABLE% %> <%%TABLE§I%%> : "1" <%%TABLE§I§I%%> : "0" <%next %TABLE% %> <%%TABLE§I%%> : "2" <%%TABLE§I§I%%> : "0" <%next %TABLE% %> <%%TABLE§I%%> : "3" <%%TABLE§I§I%%> : "0" Should wrap around dimensions <%next %TABLE% %> <%%TABLE§I%%> : "0" <%%TABLE§I§I%%> : "1" <%next %TABLE% %> <%%TABLE§I%%> : "1" <%%TABLE§I§I%%> : "1" <%back %TABLE% %> <%%TABLE§I%%> : "0" <%%TABLE§I§I%%> : "1" <%back %TABLE% %> <%%TABLE§I%%> : "4" <%%TABLE§I§I%%> : "0" <%back %TABLE% %> <%%TABLE§I%%> : "3" <%%TABLE§I§I%%> : "0" <%back %TABLE% %> <%%TABLE§I%%> : "2" <%%TABLE§I§I%%> : "0" <%back %TABLE% %> <%%TABLE§I%%> : "1" <%%TABLE§I§I%%> : "0"
<%if (%avar0% eq "true") "single" %endif %> : "" <%set %avar0% = "true" %> <%if (%avar0% eq "true") "single" %endif %> : "single" <%set %encapsed% = "single with injection" %> <%if (%avar0% eq "true") "<%%encapsed%%>" %endif %> : "single with injection" <%if (%avar1% eq "true") "first" %else "second" %endif %> : "second" <%set %avar1% = "true" %> <%if (%avar1% eq "true") "first" %else "second" %endif %> : "first" <%set %var_if% = "this is if" %> <%set %var_else% = "this is else" %> <%if (%avar2% eq "true") %var_if% %else %var_else% %endif %> : "this is else" <%set %avar2% = "true" %> <%if (%avar2% eq "true") %var_if% %else %var_else% %endif %> : "this is if"
<%if (%avar3% eq "true") %> first multiline <%else %> second multiline <%endif %> : "second multiline" <%set %avar3% = "true" %> Same expression as above : "first multiline"
<%if (%avar4% eq "true") %> first multiline <%else %> <%if (%avar5% eq "true") %> first second multiline <%else %> second second multiline <%endif %> <%endif %>> : "second second multiline" <%set %avar4% = "true" %> Same expression as above : "first multiline" <%set %avar4% = "" %> <%set %avar5% = "true" %> Same expression as above : "first second multiline"
<%template file="externalTemplates.dim#external1" %> <%template file="externalTemplates.dim#external1" %> : " external 1 template " <%%external1%%> : " external 1 template " <%%external2%%> : "" <%import file="externalTemplates.dim#o*" %> <%%otherExternal1%%> : " alternate external 1 template " <%%external2%%> : "" <%import file="externalTemplates.dim#*" %> <%%otherExternal1%%> : " alternate external 1 template " <%%external2%%> : " external 2 template "
<%%newvar%%> : ""
<%invoke script="overscript.php" %>
<%%newvar%%> : "a new variable brought from an additional script"
Os was :