unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: Is there a mod-emacs?
Date: Sun, 06 Jan 2008 20:35:53 +1100	[thread overview]
Message-ID: <871w8vwb2e.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: 4870e7ae-ab72-4d0b-8d42-9a4ed0a54e8d@e23g2000prf.googlegroups.com

rustom <rustompmody@gmail.com> writes:

> Just as there are mod-perl mod-python etc for apache is there
> something like mod-emacs of some sort?
>
> Context is as follows:
>
> org mode has org-export-as-html which produces html for the
> corresponding org file.
>
> If apache could be configured to talk to emacs then when it is asked
> to serve a .org file, say foo.org it could do
>
> emacs -batch -eval '(org-export-as-html foo.org)'
>
> and serve the resulting html.

There is an emacs elisp httpd server (at least there use to be one), but no
mod_emacs that I'm aware of. 

Of course, this is a rather resource expensive way of serving a few pages -
you would always have to have an emacs image loaded or accept fairly slow
responses (depending on machine/resoruces etc). 

I think a better solution would be to add a hook to the org mode save
function that does an automatic export as html whenever the org file is
updated. The pages can then be served by a regular httpd process and as a
new export is done whenever the org file is saved, the pages will always be
up-to-date (provided they are edited by emacs of course).

Tim
-- 
tcross (at) rapttech dot com dot au

  parent reply	other threads:[~2008-01-06  9:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-03 16:37 Is there a mod-emacs? rustom
2008-01-03 21:06 ` Bastien
2008-01-06  9:35 ` Tim X [this message]
2008-01-06 10:01   ` thorne
2008-01-07  5:56     ` Tim X
2008-01-07 16:55       ` Mathias Dahl
2008-01-08  1:11         ` Mike Mattie
2008-01-08  1:16         ` Tim X
     [not found] ` <mailman.5676.1199394418.18990.help-gnu-emacs@gnu.org>
2008-01-07 19:52   ` Joel J. Adamson
2008-01-07 21:29     ` thorne
2008-01-08  1:05     ` Tim X
2008-01-08 15:56       ` Joel J. Adamson

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=871w8vwb2e.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@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.
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).