[Ur] Simple XML Templating Problem

Burton Samograd burton.samograd at gmail.com
Thu Oct 2 15:48:52 EDT 2014


That worked.  Thanks!

On Thu, Oct 2, 2014 at 1:43 PM, maasha at gmail.com <maasha at gmail.com> wrote:

> The was also problem was the return statement I pulled it out in my last
> message without making a mention of the change ... sorry about that.
> Also my preamble mentioning of xbody was a bit off as this is in the
> head.  I do a quick compile before I send out code so both code samples
> should compile for you ... let me know if this is not the case.
>
> fun head_template (_title:string) =
>     <xml><head><title>{[_title]}</title></head></xml>
>
> fun main () = return <xml>
>     {head_template "Blog Main"}
>     <body>
>     </body>
>     </xml>
>
>
> happy hacking
>
> On 10/02/2014 03:33 PM, Burton Samograd wrote:
> >
> > fun head_template (_title:string) =
> >     return <xml><head><title>{[_title]}</title></head></xml>
> >
> > fun main () = return <xml>
> >     {head_template "Blog Main"}
> >     <body>
> >     </body>
> >     </xml>
>
>
> _______________________________________________
> Ur mailing list
> Ur at impredicative.com
> http://www.impredicative.com/cgi-bin/mailman/listinfo/ur
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.impredicative.com/pipermail/ur/attachments/20141002/377d1905/attachment.html>


More information about the Ur mailing list