minor changes on testtag.jet
This commit is contained in:
parent
4d6b1e80b3
commit
79d68d6c34
@ -10,7 +10,7 @@ namespace jet {
|
||||
throw coreutils::Exception("tag must have a name.");
|
||||
if(!hasContainer)
|
||||
throw coreutils::Exception("tag requires a container to process.");
|
||||
global.tags[variables["name"]] = container;
|
||||
global.tags[variables["name"]] = container; // TODO: process container for further tag definitions.
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,17 +1,22 @@
|
||||
#!../jet-2.0
|
||||
<jet filterblanklines="true" trimlines="true">
|
||||
<tag name="testform">
|
||||
<tag name="testinput">
|
||||
<input type="input" name="name" value="#[test]" />
|
||||
</tag>
|
||||
<form>
|
||||
1-$[test]
|
||||
<container />
|
||||
2-$[test]
|
||||
#[test]
|
||||
</form>
|
||||
</tag>
|
||||
<set name="ix" value="1" />
|
||||
<testform>
|
||||
<testform test="this is a var">
|
||||
a
|
||||
<input type="input" name="name" />
|
||||
<testinput />
|
||||
<set name="test" value="itsset" />
|
||||
b
|
||||
</testform>
|
||||
</jet>
|
||||
<testinput />
|
||||
</jet>
|
||||
|
Loading…
x
Reference in New Issue
Block a user