Mercurial > urweb
annotate tests/badInline.ur @ 1906:0d2fdc2cc46c
Allow building in a separate build directory
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
---
Makefile.am | 30 +++---
src/c/Makefile.am | 2 +-
src/compiler.mlb | 2 +-
src/sources | 302 +++++++++++++++++++++++++++---------------------------
4 files changed, 168 insertions(+), 168 deletions(-)
author | Anders Kaseorg <andersk@mit.edu> |
---|---|
date | Fri, 22 Nov 2013 09:36:14 -0500 |
parents | 62c18ecbfec4 |
children |
rev | line source |
---|---|
adam@1804 | 1 style s1 |
adam@1804 | 2 style s2 |
adam@1804 | 3 style s3 |
adam@1804 | 4 |
adam@1804 | 5 fun ifClass r cls c = if r then classes cls c else c |
adam@1804 | 6 |
adam@1804 | 7 fun main (n : int) : transaction page = return <xml><body> |
adam@1804 | 8 <p class={ifClass (n = 0) s1 |
adam@1804 | 9 (ifClass (n = 1) s2 |
adam@1804 | 10 (ifClass (n = 2) s3 |
adam@1804 | 11 null))}>Hi</p> |
adam@1804 | 12 </body></xml> |