What I want to achieve is to add vCards to my contact pages, created on the fly and downloadable. I guess I could make a very bare template with the functionality and the correct mime-settings to the header etc, add a page (which is never displayed as it is) to get an address and call it with the ID of the current contact in a querystring. I'm pretty sure that would work, but it feels instinctively wrong.
The other way to do it would be to create a proper static file, as you would outside of a CMS, and, when called, let it look through the database. But this seems even more wrong.
So what would be the proper way to do something like this?
This time, my hope is to make a vCard solution, but based on my previous experiences (mainly from ASP and custom built CMSes) similar things comes up every now and then - maybe you need a downloadable XML-file based on something in the database or a slightly dynamic css/js file based on a setting (like an AJAX file with proper references to the theme or what not).