From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA14062; Sun, 13 Apr 2003 16:02:33 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA14162 for ; Sun, 13 Apr 2003 16:02:32 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h3DE16X29281; Sun, 13 Apr 2003 16:01:06 +0200 (MET DST) Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA14184; Sun, 13 Apr 2003 16:01:06 +0200 (MET DST) From: Pierre Weis Message-Id: <200304131401.QAA14184@pauillac.inria.fr> Subject: Re: mixing different languages (was: RE: [Caml-list] dynamic HTML pages) In-Reply-To: <20030409170309.GA30017@ontosoft.com> from Fred Yankowski at "Apr 9, 103 12:03:09 pm" To: fred@ontosys.com (Fred Yankowski) Date: Sun, 13 Apr 2003 16:01:06 +0200 (MET DST) Cc: caml-list@inria.fr X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; pierre:01 weis:01 caml-list:01 yankowski:01 ontosys:01 statically:01 dynamically:01 warmly:01 htmlc:01 cristal:01 ocaml:01 caml:01 checking:01 htm:97 precisely:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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