Mercurial > gui
view examples/css.ur @ 33:2e7f8f7d71d4
Update for Ur/Web's new tag name resolution
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Thu, 21 Nov 2013 16:12:17 -0500 |
parents | c1f06342c81f |
children |
line wrap: on
line source
val param = 5 fun main () : transaction page = return <xml><body> <div style={Style.prop1 "font-weight" "bold"}>Bold</div> <div style={Style.prop "background" (Style.valu (bless "http://adam.chlipala.net/web.png") :: Style.valu "no-repeat" :: [])}>Image</div> <div style={Style.props (("font-weight", Style.valu "bold" :: []) :: ("background", Style.valu (bless "http://adam.chlipala.net/web.png") :: Style.valu "no-repeat" :: []) :: [])}>Both</div> <div style={Style.prop1 "margin-left" (show (2.5 * float param) ^ "em")}>Margin</div> </body></xml>