From 5f895c17f35466d10ef80cd7146638d8505e4e9b Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Thu, 24 Jul 2008 11:16:54 -0400 Subject: HTML select --- src/monoize.sml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/monoize.sml') 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 ""), + 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 -- cgit v1.2.3