Fixed some bugs in include and jet tags for cgi handling.
This commit is contained in:
parent
5cefb0974b
commit
c11d5abcd0
@ -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 {
|
||||
|
@ -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")) {
|
||||
|
@ -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=[]
|
||||
|
Loading…
x
Reference in New Issue
Block a user