Fixed some bugs in include and jet tags for cgi handling.

This commit is contained in:
Brad Arant committed 2025-01-16 15:45:15 -08:00
1 parent 5cefb0974b
commit c11d5abcd0
3 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ namespace jet {
if(hasContainer)
throw coreutils::Exception("include tag should not have a container.");
hasContainer = true;
coreutils::File file(keywords[resolveKeyword("file")]);
coreutils::File file(resolveKeyword("file"));
file.read();
container = file.asZString();
try {
+1 -1
View File
@@ -6,7 +6,7 @@
namespace jet {
__jet::__jet(coreutils::ZString &in, coreutils::MString &parentOut, Global &global, Tag *parent, Tag *local) : Tag(in, parentOut, global, parent, this) {
if(keywordDefined("cgi") && (keywords[resolveKeyword("cgi")] == "true")) {
if(keywordDefined("cgi") && (resolveKeyword("cgi") == "true")) {
global.cgi = true;
if(keywordDefined("sessiondir")) {
+3
View File
@@ -24,3 +24,6 @@ varname1=[vardata]
*** LOCAL VARIABLES ***
localvar=[This is a container set with '']
testinclude=[xThis is a container set with ''x]
*** KEYWORD VALUES ***
file=[./testinclude.jet]
name1=[]