-
Notifications
You must be signed in to change notification settings - Fork 2
/
org-htmlslidy.el
48 lines (35 loc) · 1.57 KB
/
org-htmlslidy.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
;;; org-htmlslidy.el --- helpers for htmlslidy org export
;; Copyright (C) 2009 Free Software Foundation, Inc.
;; Author: Yann Hodique <[email protected]>
;; Keywords:
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.
;; This file is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING. If not, write to
;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.
;;; Commentary:
;;
;;; Code:
(defvar org-htmlslidy-html-preamble-header nil)
(defvar org-htmlslidy-html-preamble-footer nil)
(defun org-htmlslidy-string-or-call (v)
(or
(and org-htmlslidy-html-preamble-footer
(or (and (functionp v)
(funcall v))
(and (stringp v) v)))
""))
(defun org-htmlslidy-html-preamble-function (property-list &rest ignore)
(format "<div class=\"slide cover title\">
<h1>%s</h1><h3>%s <%s>></h3></div>" (plist-get property-list :title) (plist-get property-list :author) (plist-get property-list :email)))
(defun org-htmlslidy-html-postamble-function (property-list &rest ignore)
"")
(provide 'org-htmlslidy)
;;; org-htmlslidy.el ends here