all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: modular block exportation was patch [Feature Addition] exporting comments on org files to html
Date: Mon, 10 Nov 2008 09:26:02 +0100	[thread overview]
Message-ID: <026208AB-35E7-4D5B-8EFB-FCD2B31AFAB3@uva.nl> (raw)
In-Reply-To: <878wrvwe9f.fsf_-_@gmail.com>

Hi Eric,

I think this interesting functionality could at least initially
be implemented as a add-on, hooking into `org-export-preprocess-hook'.
This hook is called before Org looks at any of the blocks, so the hook
could remove blocks or format them and replace them with finished
HTML (in the case of HTML export....) in a BEGIN_HTML ... END_HTML  
block.

- Carsten


On Nov 7, 2008, at 8:02 PM, Eric Schulte wrote:

> Hi,
>
> This has had me thinking about the exportation of blocks in  
> general.  I
> think it makes sense to pull block exportation out into it's own
> component both for simplicity and for ease of code-reading, hacking,  
> and
> customization.
>
> with a set of blocks of forms like...
>
> #+begin_html
>
> #+begin_src
>
> #+begin_comment
>
> #+begin_example
>
> etc...
>
> We could have an alist in which we look up the type of the block, and
> call the appropriate function to handle exportation.  Users could then
> add their own custom block export functions to this list.
>
> The optional exportation of these blocks could then be controlled by a
> single #+option variable which takes a list of blocks not to export.
> For example
>
> #+OPTION   hidden_blocks:comment,src
>
> I'd be interested to hear anyone's thoughts on this.  If it sounds  
> like
> a good idea I'd be happy to take a stab at implementation.
>
> Cheers -- Eric

  reply	other threads:[~2008-11-10  9:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-05  6:50 patch [Feature Addition] exporting comments on org files to html Eric Schulte
2008-11-06  7:05 ` Carsten Dominik
2008-11-07  5:40   ` Eric Schulte
2008-11-07 19:02     ` modular block exportation was " Eric Schulte
2008-11-10  8:26       ` Carsten Dominik [this message]
2008-11-10 15:49         ` Eric Schulte
2008-11-12  2:03         ` Eric Schulte
2008-11-12  6:50           ` Carsten Dominik

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

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

  git send-email \
    --in-reply-to=026208AB-35E7-4D5B-8EFB-FCD2B31AFAB3@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.