emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: andrea Crotti <andrea.crotti.0@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Full web server for org-mode
Date: Sun, 01 Nov 2009 14:49:22 -0700	[thread overview]
Message-ID: <m2eiohhq59.fsf@gmail.com> (raw)
In-Reply-To: <loom.20091031T173230-590@post.gmane.org> (andrea Crotti's message of "Sat, 31 Oct 2009 16:34:32 +0000 (UTC)")

andrea Crotti <andrea.crotti.0@gmail.com> 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/

      reply	other threads:[~2009-11-01 21:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-31 16:34 Full web server for org-mode andrea Crotti
2009-11-01 21:49 ` Eric Schulte [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2eiohhq59.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=andrea.crotti.0@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).