summaryrefslogtreecommitdiffstats
path: root/examples/TGenshi/tmp/foo/template.xml
blob: 522c6e7fe98bb54c74173ba3fa607e1fd4eba41c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<html xmlns:py="http://genshi.edgewall.org/">
  <head>
    <title>${name}</title>
  </head>
  <body>
    <table>
      <tr><th>Name:</th><td>${name}</td></tr>
      <tr><th>Hostname:</th><td>${metadata.hostname}</td></tr>
      <tr><th>Toolset:</th><td>${metadata.hostname}</td></tr>
      <tr><th>UUID:</th><td>${metadata.uuid}</td></tr>
      <tr><th>Password:</th><td>${metadata.password}</td></tr>
      <tr>
	<th>Bundles:</th>
	<td>
	  <table>
	    <tr py:for="bundle in metadata.bundles"><td>${bundle}</td></tr>
	  </table>
	</td>
      </tr>
      <tr>
	<th>Groups:</th>
	<td>
	  <table>
	    <tr py:for="group in metadata.groups"><td>${group}</td></tr>
	  </table>
	</td>
      </tr>
      <tr>
	<th>Categories:</th>
	<td>
	  <table>
	    <tr py:for="category in metadata.categories"><td>${category}</td></tr>
	  </table>
	</td>
      </tr>
      <tr>
	<th>Probes:</th>
	<td>
	  <table>
	    <tr py:for="probe in metadata.probes"><td>${probe}</td><td>${metadata.probes[probe]}</td></tr>
	  </table>
	</td>
      </tr>
    </table>
  </body>
</html>