summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-11-28 16:56:45 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2012-11-28 16:56:45 -0500
commit9d38076e9a1dc49faec13596a2f707269c2a0ad7 (patch)
treebd2859407b849d931b71002f26d94e4340f0d5f7 /tests
parent550c44b258fcbb3248cda6c6401ae17f513d0ba5 (diff)
Allow any FFI module to declare new HTML tags
Diffstat (limited to 'tests')
-rw-r--r--tests/ffitag.ur3
-rw-r--r--tests/ffitag.urp4
-rw-r--r--tests/tagffi.urs1
3 files changed, 8 insertions, 0 deletions
diff --git a/tests/ffitag.ur b/tests/ffitag.ur
new file mode 100644
index 00000000..43ec5bf7
--- /dev/null
+++ b/tests/ffitag.ur
@@ -0,0 +1,3 @@
+open Tagffi
+
+fun main () : transaction page = return <xml><body><funky>test</funky></body></xml>
diff --git a/tests/ffitag.urp b/tests/ffitag.urp
new file mode 100644
index 00000000..5c7f5409
--- /dev/null
+++ b/tests/ffitag.urp
@@ -0,0 +1,4 @@
+ffi tagffi
+rewrite all Ffitag/*
+
+ffitag
diff --git a/tests/tagffi.urs b/tests/tagffi.urs
new file mode 100644
index 00000000..87ee01cb
--- /dev/null
+++ b/tests/tagffi.urs
@@ -0,0 +1 @@
+val funky : bodyTag boxAttrs