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
commit01c379cbff1dd59486da18916a49530ea0dd4f87 (patch)
treebd2859407b849d931b71002f26d94e4340f0d5f7 /tests
parent4c85cc245d53261ccbd1b67140024fd54bdedb74 (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