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 XAA04054; Mon, 29 Sep 2003 23:48:19 +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 XAA11525 for ; Mon, 29 Sep 2003 23:48:18 +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 h8TLlkH07975; Mon, 29 Sep 2003 23:47:46 +0200 (MET DST) Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id XAA30083; Mon, 29 Sep 2003 23:47:46 +0200 (MET DST) From: Pierre Weis Message-Id: <200309292147.XAA30083@pauillac.inria.fr> Subject: Re: [Caml-list] Printing text with holes In-Reply-To: <3F7865E2.4090207@1969.ws> from Karl Zilles at "Sep 29, 103 10:03:30 am" To: zilles@1969.ws (Karl Zilles) Date: Mon, 29 Sep 2003 23:47:45 +0200 (MET DST) Cc: martin_jambon@emailuser.net, 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-Loop: caml-list@inria.fr X-Spam: no; 0.00; pierre:01 weis:01 pierre:01 weis:01 caml-list:01 dynamically:01 expansions:01 hash:01 htmlc:01 htmlc:01 cristal:01 jambon:02 loads:03 directive:03 string:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Martin Jambon wrote: > > Hello, > > > > I am curious to know what people use to print long text written in a > > natural language, and containing many holes, like dynamically generated > > web pages. I just use htmlc, which is simple and efficient: http://pauillac.inria.fr/htmlc/ It uses $identifiers as you suggested, + some Server Side Includes expansions, + local environment definition facilities, + what you would like to add to it in the future :) Here is a brief excerpt of the Changes file: 1.20 (Documents environment variables expansion) ---- - Inside documents variables of the form $X, $(X), or ${X} are considered to be bound in the Htmlc's global environment hash table and expanded as their corresponding string associated value. - New -e argument to load environment files that set up Htmlc's global environment table. Environment files are list of lines that contain a variable name and an associated string (following Caml' lexical conventions). - New server side directive: the line in a document loads environment file ``filename'' and enriches the global environment accordingly. - New -s compilation flag to expand .shtml files into .html files. 1.10 (User's environment variables expansion) ---- - Throughout documents passed to htmlc, tags of the form <$X> are considered to reference the variable X in the user's gloabal environment: <$HOME> is thus replaced by the string representation of the user's HOME directory. (This expansion mechanism is disabled when including verbatim files). Hope this helps, 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