Initial coding of <include> tag. Hass issues.
This commit is contained in:
1 parent
12b3542231
commit
b837c38c2a
7 files changed
+46
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#include "__include.h"
|
||||
#include "Exception.h"
|
||||
#include "File.h"
|
||||
|
||||
namespace jet {
|
||||
|
||||
__include::__include(coreutils::ZString &in, coreutils::MString &out, Global &global) : Tag(in, out, global) {
|
||||
if(!variableDefined("file"))
|
||||
throw coreutils::Exception("file keyword must be specified.");
|
||||
if(hasContainer)
|
||||
throw coreutils::Exception("include tag should not have a container.");
|
||||
coreutils::File file(file);
|
||||
container = file.asZString();
|
||||
processContainer(container);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user