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 SAA04851; Mon, 29 Sep 2003 18:59:25 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA29765 for ; Mon, 29 Sep 2003 18:59:24 +0200 (MET DST) Received: from woodstock.1969.ws (64-215-156-42.eosinc.net [64.215.156.42]) by nez-perce.inria.fr (8.11.1/8.11.1) with SMTP id h8TGxK508802 for ; Mon, 29 Sep 2003 18:59:22 +0200 (MET DST) Received: (qmail 1024 invoked from network); 29 Sep 2003 17:10:58 -0000 Received: from apollo.1969.ws (HELO 1969.ws) (zilles@10.3.2.5) by woodstock.1969.ws with SMTP; 29 Sep 2003 17:10:58 -0000 Message-ID: <3F7865E2.4090207@1969.ws> Date: Mon, 29 Sep 2003 10:03:30 -0700 From: Karl Zilles Organization: 1969 Communications, Inc. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030827 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Martin Jambon CC: caml-list@inria.fr Subject: Re: [Caml-list] Printing text with holes References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 dynamically:01 heredoc:01 eleves:01 frisch:01 heredoc:01 firstname:99 abstracted:01 int:01 syntax:02 constructs:02 conversions:02 jambon:02 age:96 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 used HereDoc to create a set of web pages, and found it pleasant to work in. I used his old codebase, instead of the alpha version, since it looks like the alpha version hasn't been touched in 2 years. http://www.eleves.ens.fr/home/frisch/soft.html#HereDoc He has a syntax like yours: << Hello, $firstname $lastname. >> or << I am $$ string_of_int age $$ years old >> He doesn't appear to have any syntactic sugar for conversions. Which wasn't a problem. He has constructs for creating loops, and the ability to include templates from other files. He's also abstracted out the printing so that you can tell it where you want to send the generated text. ------------------- 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