Create mvc framework around the template engine