Browse thread
[Caml-list] dynamic HTML pages
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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 fred@ontosys.com tel: +1.630.879.1312 That's precisely the simple idea used in htmlc (see http://pauillac.inria.fr/htmlc/eng.htm): 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, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/ ------------------- 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