1 2 3 4 5 6 7 8 9 10 11 12
$def with (repo_data) $var title: Repository <table border="1"> <tr> <th>Repository</th> <th>Hosts</th> <th>Packages</th> </tr> $for repo in repo_data.keys(): <tr><td>$repo</td><td>$repo_data[repo]['HOSTS']</td><td>$repo_data[repo]['PACKAGES']</td></tr> </table>