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