Hi,
On 12/20/2015 11:06 AM, Pillow Kuda Sai wrote:
> Nicolas Goaziou <mail <at> nicolasgoaziou.fr> writes:
>
>> You may try
>>
>> (org-file-contents "~/Blog/html/preamble.html")
>
> That worked! Should have figured out that insert-file-contents does not
> return a string. Thanks for the help Nicolas!
>
> Happy holidays,
>
> pillow.
>
ah, I'll try that, too.
My current solution is a function like
(defun my-html-preamble (options)
(with-temp-buffer
(insert-file-contents "~/Documents/myproject/html/preamble.html")
(buffer-string)))
Best regards
Robert