emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daimrod <daimrod@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Feature request for noweb mode that strips references on export
Date: Sat, 31 Mar 2012 11:04:11 +0200	[thread overview]
Message-ID: <877gy16t10.fsf@gmail.com> (raw)
In-Reply-To: CAOXM+eUhdzKU0U4Dj+8pyhaFtNHd1hxN=-9unTsRJ18t7dg--g@mail.gmail.com

"Sean O'Halpin" <sean.ohalpin@gmail.com> writes:

> On Fri, Mar 30, 2012 at 5:39 PM, Daimrod <daimrod@gmail.com> wrote:
>> If you don't want to export boilerplate you've to use :exports none in
>> it.
>> #+name: boilerplate
>> #+begin_src ruby :exports none
>> def hello
>>  "Hello World"
>> end
>> #+end_src
>> Use it
>> #+name: example
>> #+begin_src ruby :exports both :noweb strip-export
>> <<boilerplate>>
>> hello
>> #+end_src
> Thanks but that's not my problem. When I use :exports both I get the
> code but not the results output in my exported HTML.
> Do you get the "Hello World" output? If so, it looks like I'll have to
> debug my configuration.

No, you're right, I have to execute evaluate the code manually to

#+RESULTS: example
: Hello World

and then it's exported but only if the code isn't evaluated during the
export. It looks like there is a bug with in the ruby part because the
following code works as expected.

* Title
#+name: boilerplate
#+begin_src emacs-lisp :exports none
  (defun hello ()
    "Hello World")

Use it

#+name: example
#+begin_src emacs-lisp :exports both :noweb strip-export

It exports to

1 Title

Use it


Hello World

  reply	other threads:[~2012-03-31  9:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-31  4:11 Feature request for noweb mode that strips references on export Avdi Grimm
2012-01-31  7:56 ` Sebastien Vauban
2012-01-31 17:38   ` Avdi Grimm
2012-01-31 18:48     ` Avdi Grimm
2012-02-01 14:18       ` Eric Schulte
2012-02-01 15:21 ` Eric Schulte
2012-03-15 18:24   ` Avdi Grimm
2012-03-30 16:22     ` Sean O'Halpin
2012-03-30 16:37       ` Nick Dokos
2012-03-31  8:28         ` Sean O'Halpin
2012-03-30 16:39       ` Daimrod
2012-03-31  8:33         ` Sean O'Halpin
2012-03-31  9:04           ` Daimrod [this message]
2012-03-31 16:03           ` Nick Dokos
2012-03-31 15:32             ` Eric Schulte
2012-04-01 21:28               ` Sean O'Halpin

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:

  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=877gy16t10.fsf@gmail.com \
    --to=daimrod@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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).