From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Full web server for org-mode Date: Sun, 01 Nov 2009 14:49:22 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4iJY-0006Iw-5x for emacs-orgmode@gnu.org; Sun, 01 Nov 2009 16:50:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4iJS-0006Fd-KQ for emacs-orgmode@gnu.org; Sun, 01 Nov 2009 16:50:18 -0500 Received: from [199.232.76.173] (port=40093 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4iJS-0006Fa-Ep for emacs-orgmode@gnu.org; Sun, 01 Nov 2009 16:50:14 -0500 Received: from mail-px0-f189.google.com ([209.85.216.189]:52549) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N4iJS-0004sl-1W for emacs-orgmode@gnu.org; Sun, 01 Nov 2009 16:50:14 -0500 Received: by pxi27 with SMTP id 27so2969909pxi.25 for ; Sun, 01 Nov 2009 13:50:12 -0800 (PST) In-Reply-To: (andrea Crotti's message of "Sat, 31 Oct 2009 16:34:32 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: andrea Crotti Cc: emacs-orgmode@gnu.org andrea Crotti writes: > I was thinking if it could be a good idea. > Instead of static project exporting I could have a web server > (maybe in elisp) that export projects on demand, only if html is older > than source file. > > That would be useful to get maybe a way to navigate everywhere > in our org-world without exiting the browser and being always up to date. > > Maybe it could also take the agenda, export to ical and open it with a > whatever reader. > > What do you think, would it be a nice idea? > Hi Andrea, This is certainly a nice idea. This is basically how blorgit [1] works. Blorgit relies on an instance of Emacs running the emacs-server [2] which sits behind a simple Ruby web-server running Sinatra [3]. Whenever a page is requested blorgit hands that page to Emacs through the server, Emacs exports the page to html using org-mode, and the resulting html is rendered. It would be straightforward to add agenda exports to this setup. It would be nice if Emacs had it's own native elisp web server implementation, but this is not currently the case, and really doesn't seem practical while Emacs is single-threaded. Best -- Eric Footnotes: [1] http://orgmode.org/worg/blorgit.php [2] see (info "(emacs)Emacs Server") [3] http://www.sinatrarb.com/