emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stefan Vollmar <vollmar@nf.mpg.de>
To: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: org-babel: two confirmations for org/HTML "macro"?
Date: Thu, 28 Mar 2013 10:35:45 +0100	[thread overview]
Message-ID: <890A187B-1139-49F9-AF3C-581B5DA49BED@nf.mpg.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 1286 bytes --]

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: vollmar@nf.mpg.de   http://www.nf.mpg.de









[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4409 bytes --]

             reply	other threads:[~2013-03-28  9:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-28  9:35 Stefan Vollmar [this message]
2013-04-10 12:53 ` org-babel: two confirmations for org/HTML "macro"? Bastien
2013-04-10 18:43   ` Achim Gratz
2013-04-10 23:34     ` Bastien
2013-04-11  5:22       ` Achim Gratz
2013-04-11  8:41         ` Bastien
2013-04-12 22:37           ` Eric Schulte
2013-04-13  6:37             ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=890A187B-1139-49F9-AF3C-581B5DA49BED@nf.mpg.de \
    --to=vollmar@nf.mpg.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).