emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [ANN] Editable HTML export of Org-mode files


From: Simon Thum
Subject: Re: [O] [ANN] Editable HTML export of Org-mode files
Date: Sun, 21 Oct 2012 20:27:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.7) Gecko/20120924 Thunderbird/10.0.7

Hi Eric,

thank you for this very interesting thing!

I have two comments from my first testing.
1) It seems editing is eating all the whitespace in a section. They probably need html protection. (  or the like)
2) I cannot use the auth handler:

signal(error ("Elnode cannot set a wrapper for /login/ on org-ehtml-auth-handler")) error("Elnode cannot set a wrapper for /login/ on org-ehtml-auth-handler")
  elnode-set-wrapper(org-ehtml-auth-handler #[513 "\211\302 (...junk)
elnode--auth-define-scheme-do-wrap((org-ehtml-auth-handler #[513 " (...junk)
require(org-ehtml-auth)
(progn (require (quote org-ehtml-auth)) (setq org-ehtml-everything-editable t org-ehtml-docroot "~/org" my-org-ehtml-port 3333) (elnode-start (quote org-ehtml-auth-handler) :port my-org-ehtml-port)) eval((progn (require (quote org-ehtml-auth)) (setq org-ehtml-everything-editable t org-ehtml-docroot "~/org" my-org-ehtml-port 3333) (elnode-start (quote org-ehtml-auth-handler) :port my-org-ehtml-port))) org-babel-execute:emacs-lisp(";; (require 'org-ehtml)\n(require 'org-ehtml-auth)\n;; Configure the server\n(setq\n org-ehtml-everything-editable t\n org-ehtml-docroot \"~/org\"\n my-org-ehtml-port 3333\n )\n\n;; Start the server\n(elnode-start 'org-ehtml-auth-handler :port my-org-ehtml-port)" ((:comments . "") (:shebang . "") (:cache . "no") (:padline . "") (:noweb . "yes") (:tangle . "no") (:exports . "code") (:results . "replace") (:session . "none") (:padnewline . "yes") (:hlines . "yes") (:colnames . "no") (:result-type . value) (:result-params "replace") (:rowname-names) (:colname-names))) org-babel-execute-src-block(nil ("emacs-lisp" ";; (require 'org-ehtml)\n(require 'org-ehtml-auth)\n;; Configure the server\n(setq\n org-ehtml-everything-editable t\n org-ehtml-docroot \"~/org\"\n my-org-ehtml-port 3333\n )\n\n;; Start the server\n(elnode-start 'org-ehtml-auth-handler :port my-org-ehtml-port)" ((:comments . "") (:shebang . "") (:cache . "no") (:padline . "") (:noweb . "yes") (:tangle . "no") (:exports . "code") (:results . "replace") (:session . "none") (:padnewline . "yes") (:hlines . "yes") (:colnames . "no") (:result-type . value) (:result-params "replace") (:rowname-names) (:colname-names)) "" nil 0))
  org-babel-execute-src-block-maybe()
  org-babel-execute-maybe()
  org-babel-execute-safely-maybe()


Likely some oversight on my part.

HTH,

Simon


On 08/14/2012 12:28 AM, Eric Schulte wrote:
Hi,

I've recently put together a web server which runs in Emacs and exports
local Org-mode files to HTML in such a way that they may be edited from
within a web browser with the edits saved to local files on disk.  The
code is available from github.

          repository ---- https://github.com/eschulte/org-ehtml
           README ------- http://eschulte.github.com/org-ehtml

This is a very thin Emacs Lisp and JavaScript wrapper around Nic
Ferrier's elnode Emacs web server [1], and Nicolas Goaziou's structured
Org-mode file representation and export engine.  It requires Emacs 24
and the development versions of both Org-mode and elnode.

The code is fairly new so there are likely some kinks to be worked out
(backup your files before editing them with this web-server), but the
implementation is very simple and should be easy to modify.  See the
README for information on how to make use of elnode's authentication
system, or how to have web edits automatically committed to a local
version control system.

Comments and patches are welcome.

Cheers,

Footnotes:
[1]  https://github.com/nicferrier/elnode





reply via email to

[Prev in Thread] Current Thread [Next in Thread]