I am trying to generate a simple text file from a meteor collection. I would like the user to click on a button (let's say 'Convert to text file' button) and he would be able to download a text file containing elements of a given collection converted to text.
I would think that generating a http response on the server side and modying the content type of the http header would do but I don't know how I can achieve that.
Would anybody have suggestions ?