Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] dynamic HTML pages
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-04-09 (15:59)
From: David Monniaux <monniaux@d...>
Subject: mixing different languages (was: RE: [Caml-list] dynamic HTML pages)
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

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
<foreach item=entry><td><param name=author></td>
<td><param name=title></td></foreach>

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  
Laboratoire d'informatique de l'École Normale Supérieure,
Paris, France

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: