Mercurial > urweb
view tests/badInline.ur @ 1841:184d00f7be74
Add more HTML singleton tags, anticipating that others may make them available via the FFI
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Mon, 31 Dec 2012 09:04:35 -0500 |
parents | 62c18ecbfec4 |
children |
line wrap: on
line source
style s1 style s2 style s3 fun ifClass r cls c = if r then classes cls c else c fun main (n : int) : transaction page = return <xml><body> <p class={ifClass (n = 0) s1 (ifClass (n = 1) s2 (ifClass (n = 2) s3 null))}>Hi</p> </body></xml>