Mercurial > urweb
view demo/react.ur @ 2135:a159625975a7
Allow file directives to contain slashes
Previously, adding a line such as "file /c/foo.css css/foo.css" would
cause the compiler to raise an InvalidArc exception.
author | Julian Squires <julian@cipht.net> |
---|---|
date | Fri, 24 Apr 2015 07:51:47 -0400 |
parents | e6bc6bbd7a32 |
children |
line wrap: on
line source
fun main () = s <- source "You didn't click it yet."; return <xml><body> <button value="Click me!" onclick={fn _ => set s "Now you clicked it."}/><br/> <dyn signal={v <- signal s; return <xml>{[v]}</xml>}/> </body></xml>