From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: [org-babel] Dynamic Tangle? Date: Mon, 6 Dec 2010 22:57:58 -0600 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=53371 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPpcn-0002AV-9I for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 23:58:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPpcm-0000l4-1I for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 23:58:01 -0500 Received: from mail-bw0-f43.google.com ([209.85.214.43]:64726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPpcl-0000kt-PY for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 23:57:59 -0500 Received: by bwz14 with SMTP id 14so11005411bwz.30 for ; Mon, 06 Dec 2010 20:57:58 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode I'm preparing a presentation and I'm getting using tangle to show code /and/ produce working code examples -- this is really cool. It is possible to define a "template" and pass code blocks to it? For example: (Using pseudo-org-babel-code for brevity) #+template header code <> footer code #+example1 :render #+template with 1111111 1111111111 #+example2 :render #+template with 222222 222222222 The tangled output would be: header code 11111111111 footer code header code 2222222222 footer code I'm already able to use org-babel like below, but I have to put a <