Hi

I'm attempting to build a template for my site by passing the page content as a 
parameter to a function. Here is the call to the function:

sidebar <- return <xml><div>content!!</div></xml>;
Common.template (Some "test") sidebar

and the function body is something like:

fun template title sidebar =
        title' <- return (case title of
                | None => "UMDTalks"
                | Some t => String.append t " - UMDTalks"
        );
        return <xml>
                <html>
                …
                {sidebar}
                </html>
        </xml>


My current function signature is:

val template : option string -> xml -> transaction page

I believe the problem is in the signature. I guess what is the proper type for 
the second parameter?

Thanks,

JP

PS. The error I'm getting is:

common.urs:4:32-4:35: Wrong kind
_______________________________________________
Ur mailing list
[email protected]
http://www.impredicative.com/cgi-bin/mailman/listinfo/ur

Reply via email to