Re: [Orgmode] Re: Properties and Property Drawers in HTML export

2009-12-03 Thread Rick Moynihan
2009/12/3 Christian Egli :
> Hi
>
> Rick Moynihan  writes:
>> Would something like the following not be a better format for
>> parsing/processing?
>>
>> 
>>   
>>     FOO> class="property_value_foo">blah
>>     BAR> class="property_value_bar">blah blah
>>   
>> 
>
> 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.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Properties and Property Drawers in HTML export

2009-12-03 Thread Christian Egli
Hi

Rick Moynihan  writes:
> Would something like the following not be a better format for
> parsing/processing?
>
> 
>   
> FOO class="property_value_foo">blah
> BAR class="property_value_bar">blah blah
>   
> 

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



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Properties and Property Drawers in HTML export

2009-12-02 Thread Rick Moynihan
2009/12/2 Rick Moynihan :
> 2009/12/2 Rick Moynihan :
>> 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:

PROPERTIES
:FOO: blah
:BAR: blah blah


Would something like the following not be a better format for
parsing/processing?


  
FOOblah
BARblah blah
  


R.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Properties and Property Drawers in HTML export

2009-12-01 Thread Rick Moynihan
2009/12/2 Rick Moynihan :
> 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.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode