modcaml
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Modcaml] How to use ::table(name):: - ::end::


From: Richard W. M. Jones
Subject: Re: [Modcaml] How to use ::table(name):: - ::end::
Date: Mon, 25 Jul 2005 10:17:25 +0100
User-agent: Mutt/1.3.28i

On Sun, Jul 24, 2005 at 11:19:26PM +0200, Stephany Francois wrote:
> >I think what you wanted is something like:
> >
> >  let titre = q#param "titre" in
> >  let auteur = q#param "auteur" in
> >  let ta = [ "titre", Template.VarString titre;
> >             "auteur", Template.VarString auteur ] in ...
> Yes, I've already tried that but there is a type problem:
> 
> File "essai2.ml", line 39, characters 28-30:
> This expression has type (string * Template.var_t) list
> but is here used with type Template.table_row_t list
> Type string * Template.var_t is not compatible with type
>   Template.table_row_t = (string * Template.var_t) list
> 
> The expression is: temp#table "parametres" ta;

Yes, there's a mistake here.  #table is expecting a list of rows, but
here's we've given it just one row.  The correct call should be:

temp#table "parametres" [ta];

Rich.

-- 
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]