* Properties and Property Drawers in HTML export
@ 2009-12-02 1:37 Rick Moynihan
2009-12-02 1:58 ` Rick Moynihan
0 siblings, 1 reply; 5+ messages in thread
From: Rick Moynihan @ 2009-12-02 1:37 UTC (permalink / raw)
To: emacs-orgmode
Does anyone know if it's possible to export org-mode properties and
property drawers in a HTML export?
R.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Properties and Property Drawers in HTML export
2009-12-02 1:37 Properties and Property Drawers in HTML export Rick Moynihan
@ 2009-12-02 1:58 ` Rick Moynihan
2009-12-02 12:21 ` Rick Moynihan
0 siblings, 1 reply; 5+ messages in thread
From: Rick Moynihan @ 2009-12-02 1:58 UTC (permalink / raw)
To: emacs-orgmode
2009/12/2 Rick Moynihan <rick.moynihan@gmail.com>:
> Does anyone know if it's possible to export org-mode properties and
> property drawers in a HTML export?
>
> R.
Ok, just discovered the :drawers option!
The documentation claims that supplying a list of properties allows
you to filter which ones are exported, however I can't get this
working... e.g. I've tried setting org-publish-project-alist to both:
:drawers ("FOO" "BAR")
and:
:drawers '("FOO" "BAR")
Neither seem to work... any ideas?
R.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Properties and Property Drawers in HTML export
2009-12-02 1:58 ` Rick Moynihan
@ 2009-12-02 12:21 ` Rick Moynihan
2009-12-03 16:06 ` Christian Egli
0 siblings, 1 reply; 5+ messages in thread
From: Rick Moynihan @ 2009-12-02 12:21 UTC (permalink / raw)
To: emacs-orgmode
2009/12/2 Rick Moynihan <rick.moynihan@gmail.com>:
> 2009/12/2 Rick Moynihan <rick.moynihan@gmail.com>:
>> Does anyone know if it's possible to export org-mode properties and
>> property drawers in a HTML export?
>>
>> R.
>
> Ok, just discovered the :drawers option!
>
> The documentation claims that supplying a list of properties allows
> you to filter which ones are exported, however I can't get this
> working... e.g. I've tried setting org-publish-project-alist to both:
>
> :drawers ("FOO" "BAR")
>
> and:
>
> :drawers '("FOO" "BAR")
>
> Neither seem to work... any ideas?
>
Also, the properties are exported into the HTML like so:
<pre class="example">PROPERTIES
:FOO: blah
:BAR: blah blah
</pre>
Would something like the following not be a better format for
parsing/processing?
<div class="properties">
<dl>
<dt class="property_key_foo">FOO</dt><dd
class="property_value_foo">blah</dd>
<dt class="property_key_bar">BAR</dt><dd
class="property_value_bar">blah blah</dd>
</dl>
</div>
R.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Properties and Property Drawers in HTML export
2009-12-02 12:21 ` Rick Moynihan
@ 2009-12-03 16:06 ` Christian Egli
2009-12-03 17:02 ` Rick Moynihan
0 siblings, 1 reply; 5+ messages in thread
From: Christian Egli @ 2009-12-03 16:06 UTC (permalink / raw)
To: emacs-orgmode
Hi
Rick Moynihan <rick.moynihan@gmail.com> writes:
> Would something like the following not be a better format for
> parsing/processing?
>
> <div class="properties">
> <dl>
> <dt class="property_key_foo">FOO</dt><dd
> class="property_value_foo">blah</dd>
> <dt class="property_key_bar">BAR</dt><dd
> class="property_value_bar">blah blah</dd>
> </dl>
> </div>
org-export-format-drawer-function might be what you are looking for:
C-h v org-export-format-drawer-function
Function to be called to format the contents of a drawer.
The function must accept three parameters:
BACKEND one of the symbols html, docbook, latex, ascii, xoxo
NAME the drawer name, like "PROPERTIES"
CONTENT the content of the drawer.
The function should return the text to be inserted into the buffer.
If this is nil, `org-export-format-drawer' is used as a default.
HTH
Christian
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Re: Properties and Property Drawers in HTML export
2009-12-03 16:06 ` Christian Egli
@ 2009-12-03 17:02 ` Rick Moynihan
0 siblings, 0 replies; 5+ messages in thread
From: Rick Moynihan @ 2009-12-03 17:02 UTC (permalink / raw)
To: Christian Egli; +Cc: emacs-orgmode
2009/12/3 Christian Egli <christian.egli@sbszh.ch>:
> Hi
>
> Rick Moynihan <rick.moynihan@gmail.com> writes:
>> Would something like the following not be a better format for
>> parsing/processing?
>>
>> <div class="properties">
>> <dl>
>> <dt class="property_key_foo">FOO</dt><dd
>> class="property_value_foo">blah</dd>
>> <dt class="property_key_bar">BAR</dt><dd
>> class="property_value_bar">blah blah</dd>
>> </dl>
>> </div>
>
> org-export-format-drawer-function might be what you are looking for:
>
> C-h v org-export-format-drawer-function
>
Great! That looks like what I need... turns out it was introduced 3
weeks ago... shortly after I last updated org-mode...
git pull origin master && make clean && make install
M-x org-reload
tada!
Cheers.
R.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-12-03 17:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-02 1:37 Properties and Property Drawers in HTML export Rick Moynihan
2009-12-02 1:58 ` Rick Moynihan
2009-12-02 12:21 ` Rick Moynihan
2009-12-03 16:06 ` Christian Egli
2009-12-03 17:02 ` Rick Moynihan
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).