[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Parsing property drawers in subtree scope exports
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Parsing property drawers in subtree scope exports |
Date: |
Sat, 01 Jul 2017 18:08:06 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Kaushal Modi <address@hidden> writes:
> I didn't follow that. Do you mean that the "EXPORT_" is a special
> prefix?
I do. See (info "(org) Export settings").
> Should that be added to these?
>
> =====
> :options-alist '((:hugo-front-matter-format "HUGO_FRONT_MATTER_FORMAT" nil
> org-hugo-front-matter-format)
> (:hugo-tags "HUGO_TAGS" nil nil)
> =====
If you set this, you can access to EXPORT_HUgo_TAGS property
with :hugo-tags.
> I already tried above, but I don't know how to get the ":HUGO_TAGS" value
> from the property drawer, in subtreep export only, in the body filter (with
> only body and info available).
(plist-get info :hugo-tags)
> Otherwise, you simply need to retrieve it and store it before calling
>> `org-export-to-file' or whatever.
>
>
> Hmm, will give this a try.. may be look at the pre export hook?
You can also do that, if you don't use the "EXPORT_" prefix above.
However, you need to expand the buffer first, because it will be
narrowed to the current subtree.
Regards,