include tag is not working.

This commit is contained in:
Brad Arant committed 2024-10-22 17:03:17 -07:00
1 parent b837c38c2a
commit 8499199592
3 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -9,7 +9,9 @@ namespace jet {
throw coreutils::Exception("file keyword must be specified."); throw coreutils::Exception("file keyword must be specified.");
if(hasContainer) if(hasContainer)
throw coreutils::Exception("include tag should not have a container."); 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(); container = file.asZString();
processContainer(container); processContainer(container);
} }
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -39,7 +39,7 @@
<set name="noeval" eval="no">this is the value store in #[name].</set> <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="thename" eval="yes">this is the value store in #[name].</set>
<set name="newname" scope="global">another container value</set> <set name="newname" scope="global">another container value</set>
<xinclude file="./testinclude.jet" /> <include file="./testinclude.jet" />
include: $[include] include: $[include]
>>>$[noeval]<<< >>>$[noeval]<<<
>>>$[thename]<<< >>>$[thename]<<<