Render the template and make this work with gin