Quick attempt at figuring out how a templating framework would work...