From: David Monniaux <monniaux@dmi.ens.fr>
To: "'Liste CAML'" <caml-list@inria.fr>
Subject: mixing different languages (was: RE: [Caml-list] dynamic HTML pages)
Date: Tue, 8 Apr 2003 14:28:50 +0200 (MEST) [thread overview]
Message-ID: <Pine.GSO.4.03.10304081419350.18287-100000@basilic.ens.fr> (raw)
In-Reply-To: <036001c2fdc6$522084d0$0a00a8c0@gateway>
On Tue, 8 Apr 2003, Mattias Waldau wrote:
> I use HereDoc by Alain Frisch. I think I use an old version.
> It works like JSP. Very simple to use. Based on camlp4.
This is slightly off-topic, but:
In the case of dynamic WWW pages, it is often the case that the same
script or program actually contains code written in several languages:
HTML, SQL, OCaml/PHP/Perl, XML...
For integration, a mechanism of quotation/antiquotations (à la Camlp4) is
nice.
Are there any text editors that are aware of such mixed programs?
Another alternative for HTML would be to have a regular HTML page, perhaps
edited with HTML generation tools (FrontPage, Quanta+...), with special
tags indicating special actions.
For instance: a table output from a bibliographic database would look like
<table><tbody>
<foreach item=entry><td><param name=author></td>
<td><param name=title></td></foreach>
</tbody></table>
It would only be a matter of parsing this regular HTML page with a SGML
parser such as OCamlNet, replacing <foreach>...</foreach> by iteration and
<param> tags by iteration variables.
Has there been something done around that kind of things?
David Monniaux http://www.di.ens.fr/~monniaux
Laboratoire d'informatique de l'École Normale Supérieure,
Paris, France
-------------------
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
next prev parent reply other threads:[~2003-04-09 15:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-08 7:27 [Caml-list] dynamic HTML pages David Monniaux
2003-04-08 9:19 ` Maxence Guesdon
2003-04-08 11:59 ` Mattias Waldau
2003-04-08 12:28 ` David Monniaux [this message]
2003-04-09 17:03 ` mixing different languages (was: RE: [Caml-list] dynamic HTML pages) Fred Yankowski
2003-04-09 17:24 ` Brian Skahan
2003-04-10 7:20 ` Christian Lindig
2003-04-13 14:01 ` Pierre Weis
2003-04-09 18:12 ` Miles Egan
2003-04-09 23:00 ` Jeff Henrikson
2003-04-10 0:19 ` Miles Egan
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=Pine.GSO.4.03.10304081419350.18287-100000@basilic.ens.fr \
--to=monniaux@dmi.ens.fr \
--cc=caml-list@inria.fr \
/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