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.");
|
throw coreutils::Exception("tag must have a name.");
|
||||||
if(!hasContainer)
|
if(!hasContainer)
|
||||||
throw coreutils::Exception("tag requires a container to process.");
|
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-2.0
|
||||||
<jet filterblanklines="true" trimlines="true">
|
<jet filterblanklines="true" trimlines="true">
|
||||||
<tag name="testform">
|
<tag name="testform">
|
||||||
|
<tag name="testinput">
|
||||||
|
<input type="input" name="name" value="#[test]" />
|
||||||
|
</tag>
|
||||||
<form>
|
<form>
|
||||||
1-$[test]
|
1-$[test]
|
||||||
<container />
|
<container />
|
||||||
2-$[test]
|
2-$[test]
|
||||||
|
#[test]
|
||||||
</form>
|
</form>
|
||||||
</tag>
|
</tag>
|
||||||
<set name="ix" value="1" />
|
<set name="ix" value="1" />
|
||||||
<testform>
|
<testform test="this is a var">
|
||||||
a
|
a
|
||||||
<input type="input" name="name" />
|
<testinput />
|
||||||
<set name="test" value="itsset" />
|
<set name="test" value="itsset" />
|
||||||
b
|
b
|
||||||
</testform>
|
</testform>
|
||||||
|
<testinput />
|
||||||
</jet>
|
</jet>
|
Loading…
x
Reference in New Issue
Block a user