open Meta
val title = string "Title"
val abstract = textarea "Abstract"
fun charIn s =
if String.length s = 0 then
error Impossible: Empty option value
else
String.sub s 0
con dropdown = (char, string)
fun dropdown name opts = {Nam = name,
Show = txt,
Widget = fn [nm :: Name] => ,
WidgetPopulated = fn [nm :: Name] v => ,
Parse = charIn,
Inject = _}