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

2009-12-03 Thread Christian Egli
Hi

Rick Moynihan rick.moyni...@gmail.com writes:
 Would something like the following not be a better format for
 parsing/processing?

 div class=properties
   dl
 dt class=property_key_fooFOO/dtdd
 class=property_value_fooblah/dd
 dt class=property_key_barBAR/dtdd
 class=property_value_barblah 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



___
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


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

2009-12-03 Thread Rick Moynihan
2009/12/3 Christian Egli christian.e...@sbszh.ch:
 Hi

 Rick Moynihan rick.moyni...@gmail.com writes:
 Would something like the following not be a better format for
 parsing/processing?

 div class=properties
   dl
     dt class=property_key_fooFOO/dtdd
 class=property_value_fooblah/dd
     dt class=property_key_barBAR/dtdd
 class=property_value_barblah 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.


___
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 rick.moyni...@gmail.com:
 2009/12/2 Rick Moynihan rick.moyni...@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=examplePROPERTIES
: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_fooFOO/dtdd
class=property_value_fooblah/dd
dt class=property_key_barBAR/dtdd
class=property_value_barblah blah/dd
  /dl
/div

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 rick.moyni...@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.


___
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