Moved keywords from local variables to keywords map.
This commit is contained in:
1 parent
907f449ecc
commit
9622b5cf8c
23 files changed
+221
-220
No files matched your search
+2
-2
@@ -5,13 +5,13 @@
|
||||
namespace jet {
|
||||
|
||||
__include::__include(coreutils::ZString &in, coreutils::MString &parentOut, Global &global, Tag *parent, Tag *local) : Tag(in, parentOut, global, parent, local) {
|
||||
if(!variableDefined("file"))
|
||||
if(!keywordDefined("file"))
|
||||
throw coreutils::Exception("file keyword must be specified.");
|
||||
if(hasContainer)
|
||||
throw coreutils::Exception("include tag should not have a container.");
|
||||
hasContainer = true;
|
||||
resolveKeyword("file");
|
||||
coreutils::File file(variables["file"]);
|
||||
coreutils::File file(keywords["file"]);
|
||||
file.read();
|
||||
container = file.asZString();
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user