Add ability to generate the template with a callback function