all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: joakim@verona.se
To: emacs-orgmode@gnu.org
Subject: Re: [OT] ELNODE is soon to be released as version 1.0
Date: Mon, 13 Aug 2012 23:05:45 +0200	[thread overview]
Message-ID: <m31ujatsd2.fsf@chopper.vpn.verona.se> (raw)
In-Reply-To: 80obmfi518.fsf@somewhere.org

"Sebastien Vauban"
<wxhgmqzgwmuf@spammotel.com> writes:

> Hello Brian,
>
> brian powell wrote:
>> * Some people have expressed interest in Elnode in the past: ELNODE is soon
>> to be released as version 1.0
>>
>> ** Video mentions Emacs OrgMode (and includes an example) and Node.js:
>>
>> http://www.youtube.com/embed/TR7DPvEi7Jg>
>> ** Elnode - the EmacsLisp Async Webserver @ version 0.9.9
>> Elnode is a webserver for Emacs 24, written in EmacsLisp. It turns your
>> Emacs into a web ...
>> nic.ferrier.me.uk/.../elnode-nears-1-point-0?...
>
> A pitty he only picked up Org for the tables, not for the entire file syntax.

It is pretty simple to serve org files with elnode. Nic made an example
for me:

#+begin_src elisp
  
  (require 'elnode)
  (defun elnode-org-handler (httpcon)
    (elnode-docroot-for "~/Plans"
        with org-file
        on httpcon
        do (with-current-buffer (find-file-noselect org-file) ;;org-file
             (let ((org-html
                    ;; This might throw errors so you could condition-case it
                    (org-export-as-html 3 nil nil 'string)))
               (elnode-send-html httpcon org-html)))))
  
  (elnode-start 'elnode-org-handler :port 8003)
  
#+end_src

Of course you need to elaborate on that for a real site, but you get the
idea.

I intend to use elnode for my own future personal org based website.


>
> However, very very nice work!
>
> Best regards,
>   Seb

-- 
Joakim Verona

  reply	other threads:[~2012-08-13 21:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-11  0:23 [OT] ELNODE is soon to be released as version 1.0 brian powell
2012-08-13  8:12 ` Sebastien Vauban
2012-08-13 21:05   ` joakim [this message]
2012-08-13 21:56     ` Bastien
2012-08-14 15:07       ` Jambunathan K
2012-08-14 15:12         ` Jambunathan K
2012-08-14 18:44           ` Bastien
2012-08-14 19:31           ` Christopher Allan Webber
2012-08-14 21:29             ` Bastien
2012-08-13 22:36 ` Eric Schulte

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

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

  git send-email \
    --in-reply-to=m31ujatsd2.fsf@chopper.vpn.verona.se \
    --to=joakim@verona.se \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.