42 lines
1.2 KiB
Plaintext
Executable File
42 lines
1.2 KiB
Plaintext
Executable File
#!./jet-2.0
|
|
<jet name1="localname" filterblanklines="true" trimlines="true">
|
|
<comment>This is a comment and should not show up in the output.</comment>
|
|
<html>
|
|
$[nonexistant]
|
|
<mysql host="localhost" database="barant" user="barant" password="uversa" sessionid="1">
|
|
<sql sessionid="1">select * from testdata</sql>
|
|
$[1.id] $[1.text] $[1.value]
|
|
</mysql>
|
|
<set name="ix" value="1" />
|
|
<set name="theexpr" expr="SUBSTRING('abcdefg', 1, 3)" />
|
|
<set name="theexpr2" expr="5+3" />
|
|
theexpr=($[theexpr])
|
|
theexpr2($[theexpr2])
|
|
<set name="varname$[ix]" value="vardata" scope="global" />
|
|
<set name="noeval" eval="no">this is the value store in #[name].</set>
|
|
<set name="thename" eval="yes">this is the value store in #[name].</set>
|
|
<set name="newname" scope="global">another container value</set>
|
|
>>>$[noeval]<<<
|
|
>>>$[thename]<<<
|
|
<set name="iz" value="data" />
|
|
<set name="ix1" value="1" />
|
|
<set name="test$[ix$[ix1]]$[iz]" value="0123456789" />
|
|
$[test$[ix$[ix1]]$[iz]]
|
|
<if value1="X" value2="Y" type="ne">
|
|
789
|
|
<if expr="false">
|
|
123
|
|
<else>
|
|
456
|
|
</if>
|
|
</if>
|
|
<for name="ix" start="1" end="5" step="1">
|
|
-->#[ix]<--
|
|
</for>
|
|
<call pgm="/usr/bin/ls" arg1="-al" name="ls" />
|
|
$[lsi]
|
|
<read file="compile" name="file" />
|
|
$[filex]
|
|
</html>
|
|
</jet>
|