caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: Stefano Zacchiroli <zack@cs.unibo.it>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] HTMLC
Date: Fri, 4 Oct 2002 17:33:55 +0200	[thread overview]
Message-ID: <20021004153355.GA911@ice.gerd-stolpmann.de> (raw)
In-Reply-To: <20021004141443.GA9205@cs.unibo.it>; from zack@cs.unibo.it on Fre, Okt 04, 2002 at 16:14:43 +0200


Am 2002.10.04 16:14 schrieb(en) Stefano Zacchiroli:
> I use WML since an year and is architecture is built up from a lot of
> layers (8 or 9 I didn't remeber), the more useful are two of them:
> - inclusion of other files, as already implemented in htmlc (even if
>   seems to me that WML does not differentiate verbatim inclusion from
>   the 'normal' one, it scans sources looking for WML special tags
>   anyway)
> - execution of embedded perl statement (obviously I'm talking about
>   execution at compile time, WML philosophy is the same as HTMLC one)
> 
> What about adding such a feature to HTMLC?
> I don't know how hard is to implement such a feature, I can wonder that
> it require the instantiation of an ocaml runtime while starting the
> compiler, and an 'eval' like statement execution each time some ocaml
> code is encountered. I know that Gerd Stoplmann is doing something like
> that in PXP (embedding ocaml code in XML document), but I haven't yet
> looked at it ...

What do you mean? I have never done something like this. Maybe you mix it
up with one of the following ideas:

- PXP supports some kind of "class selection". Depending of the name of the
  XML/HTML element, different classes can be instantiated to represent the
  element in the object tree
- In WDialog it is possible to bind ocaml code at various stages of
  page processing in order to customize the actions. The XML/HTML document and
  the ocaml code are connected by various kinds of binding tags.
  It is part of the philosphy to separate the HTML markup from the algorithm
  generating the HTML blocks from input data.

Neither of these concepts need the ocaml compiler at runtime, but I have
dynamic HTML pages in mind, so calling the compiler would be a bad idea
(security, performance, etc.).
 
Gerd
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany 
gerd@gerd-stolpmann.de          http://www.gerd-stolpmann.de
------------------------------------------------------------
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2002-10-04 15:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-03 20:45 Pierre Weis
2002-10-04  9:00 ` Stefano Zacchiroli
2002-10-04  9:47   ` Pierre Weis
2002-10-04 14:14     ` Stefano Zacchiroli
2002-10-04 15:33       ` Gerd Stolpmann [this message]
2002-10-04 15:48         ` Stefano Zacchiroli
2002-10-07  8:15   ` Tibor Simko
2002-10-07 10:59     ` Stefano Zacchiroli

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=20021004153355.GA911@ice.gerd-stolpmann.de \
    --to=info@gerd-stolpmann.de \
    --cc=caml-list@inria.fr \
    --cc=zack@cs.unibo.it \
    /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 NNTP newsgroup(s).