From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: [ANN, OT] Emacs web-server, a new option for serving Org-mode files Date: Sat, 11 Jan 2014 16:21:29 -0600 Message-ID: References: <87zjn24cgx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W26vs-0003rF-F2 for emacs-orgmode@gnu.org; Sat, 11 Jan 2014 17:21:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W26vr-0002LK-Bf for emacs-orgmode@gnu.org; Sat, 11 Jan 2014 17:21:32 -0500 Received: from mail-ob0-x233.google.com ([2607:f8b0:4003:c01::233]:60818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W26vr-0002L8-5e for emacs-orgmode@gnu.org; Sat, 11 Jan 2014 17:21:31 -0500 Received: by mail-ob0-f179.google.com with SMTP id wp4so782681obc.24 for ; Sat, 11 Jan 2014 14:21:30 -0800 (PST) In-Reply-To: <87zjn24cgx.fsf@gmail.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 On Sat, Jan 11, 2014 at 12:09 PM, Eric Schulte wrote: > A non-Org announcement which I believe may still be of interest given > the recurring discussion of ways to serve Org-mode files as web pages. > > I've written an Emacs web-server [1], which may be used to interact with > Org-mode over HTTP. It has no dependencies aside from needing Emacs 24 > or later and it should be easy to install and use [2]. > > Three simple examples of how it may be used with Org-mode include; > 1. web server which exports Org files on demand [3], > 2. an export *service* [4] which allows users to upload Org-mode files > and then download exported versions, or > 3. simply a way to serve your daily agenda as a web page [5]. > This sounds really, really cool! > I've ported the Org-ehtml editable Org-mode Wiki [6] from Elnode to this > new web-server, and I now find that it is both easier to install, and is > more stable, and faster [7]. I know that Elnode setup had been a > barrier to some users of org-ehtml, hopefully that barrier is now > removed. > > I hope this is of interest and not too far off topic. The "Hello world" example worked splendidly for me out of the box. I'm having a bit of difficulty with serving up a file via this example: http://eschulte.github.io/emacs-web-server/File-Server.html#File-Server Perhaps I don't understand how the function is supposed to work... It says that the docroot is the current working directory in the example, so I cd'd to a directory with an .html file in it, started `emacs -Q` from the command line, ran `M-x load-file RET ~/.emacs`, and then evaluated the code from the example in the *scratch* buffer. I'm getting the 404 error. Should I be modifying that code somehow? Thanks and great work -- this is really neat! John > Best, > > Footnotes: > [1] https://github.com/eschulte/emacs-web-server > > [2] http://eschulte.github.io/emacs-web-server/tutorials/#sec-1 > > [3] http://eschulte.github.io/emacs-web-server/Org_002dmode-Export.html#Org_002dmode-Export > > [4] https://github.com/eschulte/emacs-web-server/blob/master/examples/013-org-export-service.el > > [5] https://github.com/eschulte/emacs-web-server/blob/master/examples/011-org-agenda.el > > [6] https://github.com/eschulte/org-ehtml > > [7] http://eschulte.github.io/emacs-web-server/benchmark/ > > -- > Eric Schulte > https://cs.unm.edu/~eschulte > PGP: 0x614CA05D >