Succesfully decoupled the template from generatePages