Function: org-icalendar-template

org-icalendar-template is a byte-compiled function defined in ox-icalendar.el.gz.

Signature

(org-icalendar-template CONTENTS INFO)

Documentation

Return complete document string after iCalendar conversion.

CONTENTS is the transcoded contents string. INFO is a plist used as a communication channel.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-icalendar.el.gz
(defun org-icalendar-template (contents info)
  "Return complete document string after iCalendar conversion.
CONTENTS is the transcoded contents string.  INFO is a plist used
as a communication channel."
  (org-icalendar--vcalendar
   ;; Name.
   (if (not (plist-get info :input-file)) (buffer-name (buffer-base-buffer))
     (file-name-nondirectory
      (file-name-sans-extension (plist-get info :input-file))))
   ;; Owner.
   (if (not (plist-get info :with-author)) ""
     (org-export-data (plist-get info :author) info))
   ;; Timezone.
   (or (org-string-nw-p org-icalendar-timezone) (format-time-string "%Z"))
   ;; Description.
   (org-export-data (plist-get info :title) info)
   ;; TTL
   (plist-get info :icalendar-ttl)
   contents))