summaryrefslogtreecommitdiff
path: root/src/monoize.sml
diff options
context:
space:
mode:
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