Mercurial > urweb
diff lib/ur/basis.urs @ 724:12ec14a6be0b
<link>
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 16 Apr 2009 12:00:44 -0400 |
parents | 9864b64b1700 |
children | 6fc633d990e7 |
line wrap: on
line diff
--- a/lib/ur/basis.urs Mon Apr 13 08:44:32 2009 -0400 +++ b/lib/ur/basis.urs Thu Apr 16 12:00:44 2009 -0400 @@ -452,11 +452,15 @@ con tabl = [Body, Table] con tr = [Body, Tr] +type url +val bless : string -> url + val dyn : use ::: {Type} -> bind ::: {Type} -> unit -> tag [Signal = signal (xml body use bind)] body [] use bind val head : unit -> tag [] html head [] [] val title : unit -> tag [] head [] [] [] +val link : unit -> tag [Rel = string, Typ = string, Href = url, Media = string] head [] [] [] val body : unit -> tag [Onload = transaction unit] html body [] [] con bodyTag = fn (attrs :: {Type}) => @@ -489,8 +493,6 @@ val hr : bodyTag [] -type url -val bless : string -> url val a : bodyTag [Link = transaction page, Href = url, Onclick = transaction unit] val img : bodyTag [Src = url]