Add support for the user to pass the template source, not only the path