Dear Thomas, dear Sebation, dear Achim, dear Nicolas, maybe a misunderstanding: the original idea is to produce a "personal homepage" for members of our institute, with one file per person - here is a better example http://www.nf.mpg.de/cv-howto/ex3-en.org and here some background information http://www.nf.mpg.de/cv-howto/cv-en.html. As you can see, we used MACROs for our hcard-HTML templates - this currently does not work unless all arguments are written in one line. We need 10+ arguments and using named arguments is a much better strategy anyway. The problem is quite general, I think, and a common solution I quite like is a key-value structure (preferably with optional comments), one key-value pair per line. Using a table for a key-value assignment is, of course, possible. Here again your example: #+name: card-table | cname | gname | photo | etc.| | Dr. Stefan Vollmar | Stefan | stefan-vollmar.jpg | ... | Editing a table with many columns is awkward (not everybody uses Emacs for our templates). Much easier (to edit) is the transposed version: #+name: card-table | cname | Dr. Stefan Vollmar | | gname | Stefan | | photo | stefan-vollmar.jpg | ... This might work reasonably well - if (1) I could prevent the table from being exported to HTML, (2) (probably more difficult) if this kind of thing would work: #+call: hcard(v=card-table) :results html with ...
Given Name: $v["gname"]
... inside the hcard-babel-block (org) to reference the named values. My feeling is (please correct me if I am wrong) that maybe we would want two Babel blocks: one for setting a set of variables/an array (elisp?) and one for filling the template? Could I fill a suitable structure/array/set of variables within an elisp block and then reference it/them in the org template that only requires replacing placeholders? Many thanks in advance! Warm regards, Stefan On 28.03.2013, at 22:51, Thomas S. Dye wrote: > > > Aloha Seb, > > "Sebastien Vauban" >