include tag is not working.

This commit is contained in:
Brad Arant 2024-10-22 17:03:17 -07:00
parent b837c38c2a
commit 8499199592
3 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,9 @@ namespace jet {
throw coreutils::Exception("file keyword must be specified.");
if(hasContainer)
throw coreutils::Exception("include tag should not have a container.");
coreutils::File file(file);
hasContainer = true;
coreutils::File file(variables["file"]);
file.read();
container = file.asZString();
processContainer(container);
}

BIN
jet-2.0

Binary file not shown.

View File

@ -39,7 +39,7 @@
<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="newname" scope="global">another container value</set>
<xinclude file="./testinclude.jet" />
<include file="./testinclude.jet" />
include: $[include]
>>>$[noeval]<<<
>>>$[thename]<<<