<?xml version="1.0"?> <?python import os ?> <html xmlns:py="http://purl.org/kid/ns#"> <head> <title>Image ${img.get("label")}</title> </head> <body> <h1>Image ${img.get("label")}</h1> <a py:if="prev" href="${prev + '.html'}"><<</a> <a href="index.html">index</a> <a py:if="next" href="${next + '.html'}">>></a> <img src="${imglink}" /> <p>${img.get("description")}</p> <!-- date/time --> <!-- still needs an expansion of option-groups --> <dl py:for="optclass in img.findall('options/option')"> <dt>${optclass.get('name')}</dt> <dd>${", ".join([val.get('value') for val in optclass.findall('value')])}</dd> </dl> <ul> <li py:for="size in allsizes"> <a href="${size + '.html'}">${size.split('_')[1].split('.')[0]}</a> </li> </ul> </body> </html>