i've done something horrible

but we needed a template engine and while i were at it i took the
liberty of seperating the views