meteor - Serving a vCard (.vcf) file through Iron Router -


i'm trying wrap head around how can deliver file through iron router. here trying accomplish:

1) user opens url http://website.com/vcard/:_id
2) meteor generates vcard file

begin:vcard version:3.0 n:gump;forrest;;mr. fn:forrest gump org:bubba gump shrimp co. title:shrimp man photo;value=url;type=gif:http://www.example.com/dir_photos/my_photo.gif tel;type=work,voice:(111) 555-1212 tel;type=home,voice:(404) 555-1212 adr;type=work:;;100 waters edge;baytown;la;30314;united states of america label;type=work:100 waters edge\nbaytown\, la 30314\nunited states of ameri  ca adr;type=home:;;42 plantation st.;baytown;la;30314;united states of america label;type=home:42 plantation st.\nbaytown\, la 30314\nunited states of ame  rica email;type=pref,internet:forrestgump@example.com rev:2008-04-24t19:52:43z end:vcard 

3) user gets .vcf file , runs on phone, outlook, etc.

thanks!

it has little iron router. need can return simple text file. here demo kind of that:

http://meteorpad.com/pad/tbjqfanmtafqcyz5a/leaderboard


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -