Allow jet script to not begin with jet tag. Treat as container.

This commit is contained in:
Brad Arant committed 2024-11-06 09:08:02 -08:00
1 parent b46694f71b
commit 489f1d6915
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -95,7 +95,7 @@ namespace jet {
}
}
} else
throw coreutils::Exception("First character of (in) must be a <.");
parseContainer(in);
}
Tag::~Tag() {
+3
View File
@@ -1,7 +1,10 @@
#!../jet-2.0
This is a test
<set name="var1" value="abc" />
<jet cgi="true" name1="localname" filterblanklines="true" trimlines="true">
<for name="ix" start="1" end="20" step="1">
<set name="random" expr="random()" />
$[random]
</for>
</jet>
$[var1]