emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] org-babel: two confirmations for org/HTML "macro"?


From: Stefan Vollmar
Subject: [O] org-babel: two confirmations for org/HTML "macro"?
Date: Thu, 28 Mar 2013 10:35:45 +0100

Hallo,

we currently use MACROs for adding http://microformats.org/wiki/hcard 
information to web pages we create from org sources. As these MACROs have 12+ 
arguments, this is an error prone and inelegant way of getting the desired 
result. Nicolas Goaziou suggested using a babel approach so we could have named 
arguments - obviously, this is a much better solution (thanks again, Nicolas!).

Here is a minimal example of the principle:

-- snip

#+name: html-ex1 
#+header: :var who="World"
#+BEGIN_SRC org :exports none
<p>Hallo $who</p>
#+END_SRC

* Simple HTML export
#+call: html-ex1(who="Stefan") :results html

-- snip

When exporting this code (new exporter), I need two confirmations:

Evaluate this org code block (html-ex1)...
Evaluate this emacs-lisp block...

I can understand the first question, but why the second?
What is the best way to safely "auto-confirm" for this simple application?

Many thanks in advance.

Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
E-Mail: address@hidden   http://www.nf.mpg.de








Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]