From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Thum Subject: Re: [ANN] Editable HTML export of Org-mode files Date: Sun, 21 Oct 2012 20:27:25 +0200 Message-ID: <50843E8D.4010305@gmx.de> References: <87pq6ua0kk.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQ0JB-0004rg-BX for emacs-orgmode@gnu.org; Sun, 21 Oct 2012 14:31:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQ0J9-0004cC-S9 for emacs-orgmode@gnu.org; Sun, 21 Oct 2012 14:31:33 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:54961) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TQ0J9-0004c8-IR for emacs-orgmode@gnu.org; Sun, 21 Oct 2012 14:31:31 -0400 In-Reply-To: <87pq6ua0kk.fsf@gmx.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Org Mode Mailing List 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 >