summaryrefslogtreecommitdiff
path: root/src/monoize.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-07-24 11:16:54 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-07-24 11:16:54 -0400
commit5f895c17f35466d10ef80cd7146638d8505e4e9b (patch)
treef841aca63a6b80672762ff18a2a49a6630caa446 /src/monoize.sml
parent6f1206729039e45e032c5ba7f04d072f41dc9961 (diff)
HTML select
Diffstat (limited to 'src/monoize.sml')
-rw-r--r--src/monoize.sml14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/monoize.sml b/src/monoize.sml
index 3bcb9e83..c193e611 100644
--- a/src/monoize.sml
+++ b/src/monoize.sml
@@ -329,6 +329,20 @@ fun monoExp (env, st) (all as (e, loc)) =
normal ("input",
SOME (L'.EPrim (Prim.String (" type=\"radio\" name=\"" ^ name ^ "\"")), loc)))
+ | "lselect" =>
+ (case targs of
+ [_, (L.CName name, _)] =>
+ (L'.EStrcat ((L'.EStrcat (tagStart "select",
+ (L'.EPrim (Prim.String (" name=\"" ^ name ^ "\">")), loc)), loc),
+ (L'.EStrcat (monoExp (env, st) xml,
+ (L'.EPrim (Prim.String "</select>"),
+ loc)), loc)),
+ loc)
+ | _ => (Print.prefaces "Targs" (map (fn t => ("T", CorePrint.p_con env t)) targs);
+ raise Fail "No name passed to lselect tag"))
+
+ | "loption" => normal ("option", NONE)
+
| _ => normal (tag, NONE)
end