renard / o-blog

Standalone orgmode blog exporter. DEPECATED, NOT MAINTAINED
http://renard.github.com/o-blog-v2
260 stars 58 forks source link

handling separate files #62

Closed tonyday567 closed 11 years ago

tonyday567 commented 11 years ago

New function added - org-publish-blog-sync-include-files - that properly handles #+INCLUDE directives in org-mode. This means that separate files can be used rather than one monolithic org file. The function works with a temp buffer and, as such, no appropriate file exists. This meant changing the usage of org-map-entries from file-with-archive to nil. Given this change, I didn't hook this up to the main org-publish-blog function, or seek to include a use case in sample.org.

Tony

renard commented 11 years ago

Wouldn't be more elegant to copy the published file into a temp buffer and perform all inclusions at this point instead of duplicating the whole publication code?