<div> <object data="/uploads/{{ index .Params 0}}.pdf" type="application/pdf" width="100%" height="500px"> <p><a href="/uploads/{{ index .Params 0}}.pdf">Download the PDF!</a></p> </object>