fixed some bugs. Added resolveContainerParent flag to resolve set container issue not reading local variables appropriately.

This commit is contained in:
Brad Arant committed 2024-11-26 13:32:15 -08:00
1 parent e3d788bc92
commit bd8aa1c089
6 files changed
+13 -12

No files matched your search

+5 -5
View File
@@ -3,7 +3,7 @@
<header name="Content-Type" value="text/html" />
<comment>This is a comment and should not show up in the output.</comment>
<html>
---
---#[name1]
<set name="modified1" value="ABCD" />
$[modified1;tohex]
<set name="tohex" value="tohex" />
@@ -23,8 +23,8 @@
<set name="division" expr="5/3" />
<set name="divisor" value="8" />
<set name="nested" expr="(2*(4+4)/$[divisor])*32" />
<set name="error" value="$[$x]" />
$[$nested]
<set name="error" value="$[x]" />
$[nested]
<set name="numbers">0123456789</set>
<set name="lefty" expr="LEFT($[numbers],5)" />
lefty=[$[lefty]]
@@ -34,8 +34,8 @@
5*3($[multiplication])
5/3($[division])
<set name="varname$[ix]" value="vardata" scope="global" />
<set name="noeval" eval="no">this is the value store in #[name].</set>
<set name="thename" eval="yes">this is the value store in #[name].</set>
<set name="noeval" eval="no">this is the value store in #[name1].</set>
<set name="thename" eval="yes">this is the value store in #[name1].</set>
<set name="newname" scope="global">another container value</set>
<include file="./testinclude.jet" />
include: $[include]
+2 -5
View File
@@ -1,8 +1,5 @@
#!../jet-2.0
<jet cgi="true" name1="localname" filterblanklines="true" trimlines="true">
<set name="testvar" value="do you see this" scope="local" />
#[testvar]
<for name="ix" start="1" end="5" step="1">
-->#[ix]<--
</for>
<set name="x" value="#[name1]" />
$[x] $[x]
</jet>