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-13 (14:02)
From: Pierre Weis <pierre.weis@i...>
Subject: Re: mixing different languages (was: RE: [Caml-list] dynamic HTML pages)
Hi Fred,

> That said, I now try for a strict separation of imperative code and
> HTML code, so that my HTML template files have no language specific
> code and contain only formal parameters and markings of optional and
> repeated blocks of HTML content.  I haven't used OCaml to generate
> HTML pages, but that's the approach I would want there too.
> Fred Yankowski           tel: +1.630.879.1312

That's precisely the simple idea used in htmlc (see the HTML templates are HTML
files with SSI directives and occurrences of variables to be replaced
by their values. Variable values are defined separately in simple
configuration files; environment specific variables can also occur:
their value is then picked up from the environment.

Normally, those HTML templates are statically compiled while updating
the Web site (thus checking for errors in advance, before serving the
pages). However, htmlc can be called dynamically to produce the answer
to a query.

Htmlc is written in Objective Caml and you're welcome to join the
development team or send enhancement patches; any suggestion is also
warmly welcome.

All the best,

Pierre Weis

INRIA, Projet Cristal,,

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