Browse Source

document the html example as it may be removed from the example code

Wes Hardaker 7 years ago
parent
commit
05bdc03bc4
1 changed files with 51 additions and 0 deletions
  1. 51 0
      org-contrib/org-export-generic.org

+ 51 - 0
org-contrib/org-export-generic.org

@@ -185,3 +185,54 @@ to choose from, which will include your new type assigned to the key "R".
       | :body-text-suffix              | "</p>\n"                                                      |
       |--------------------------------+---------------------------------------------------------------|
 
+
+* Example Definitions
+
+*** Generic HTML Exporter
+
+    Here's a starting template for making a very basic HTML export.
+    It's not nearly as sophisticated and complete as org-mode's
+    default HTML exporter, but it serves as a good example for how to
+    accomplish a basic export structure:
+
+#+begin_src emacs-lisp
+   (org-set-generic-type
+    "really-basic-html" 
+     :file-suffix     ".html"
+
+     ;; simple html output
+     :file-suffix        	    ".html"
+     :key-binding                   ?h
+
+     :header-prefix             "<body>"
+
+     :title-format              "<h1>%s</h1>\n\n"
+
+     :date-export        	    t
+     :date-format               "<br /><b>Date:</b> <i>%s</i><br />\n\n"
+
+     :toc-export                nil
+
+     :body-header-section-numbers 3
+
+     :body-section-header-prefix  ("<h1>" "<h2>" "<h3>"
+				   "<h4>" "<h5>" "<h6>")
+     :body-section-header-format  "%s"
+     :body-section-header-suffix  ("</h1>\n" "</h2>\n" "</h3>\n"
+				   "</h4>\n" "</h5>\n" "</h6>\n")
+
+     :body-section-prefix         "<secprefix>\n"
+     :body-section-suffix         "</secsuffix>\n"
+;	 :body-section-prefix         ("<sec1>\n" "<sec2>\n" "<sec3>\n")
+;	 :body-section-suffix         ("</sec1>\n" "</sec2>\n" "</sec3>\n")
+
+     :body-line-export-preformated t
+     :body-line-format             "%s\n"
+
+     :body-text-prefix "<p>\n"
+     :body-text-suffix "</p>\n"
+
+     :body-bullet-list-prefix      (?* ?+ ?-)
+;	 :body-bullet-list-suffix      (?* ?+ ?-)
+     )
+#+end_src