$def with (domains, subdomains)
$var title: The Street
$var body_classes = ["widescreen", "notoolbars"]
$ last_port = 1
$for hash, domain in domains:
$ new_port = int(hash[:2], 16) + 1
$while new_port > last_port:
$ _port_hex = hex(last_port).partition("x")[2]
$ port_hex = f"{_port_hex:0>2}".upper()
Express Port $port_hex
$ last_port += 1
$ height = 16.5 + int(math.log(len(subdomains[domain])+1) * 3)
$domain
$if subdomains[domain]:
$for subdomain in subdomains[domain][:20]:
$subdomain\
$if not loop.last:
,
$if len(subdomains[domain]) > 20:
…
$hash[:5]