Hi,
I see you are using a "view-controller", but why invent yet another wheel?
What you could do is work via templates and then have a theme "default" and a theme "frames".
This way it'd rather easy for people like me to add yet another layout which they like... And for you it would be very easy to split actual code and html.
Greetz,
Steven