I've been looking exhaustively for an implementation for a feature I'd like to include in my website for sometime now, but have been stumped.
Basically, I'd like users to be able to click on a link/button and download a version of the post/custom post that uses an alternative template OR that dynamically generates and outputs a text file. I am thinking that I will need to send the post ID from the single.php file to whatever function or php page and have the browser prompt the user to save the file.
The context of this is is that I'm very close to creating a workable reference library through wordpress using a combination of custom post types, custom fields, and custom taxonomy. Being able to download a particular reference in BIBTex or RIS format would be awesome, but I would think the answer to my question would be useful for a wide assortment of purposes.