{{define "head"}} {{range $index, $meta := option . "metas"}} {{end}} {{options . "componet_name"}} {{range $index, $lib := option . "styles"}} {{end}} {{end}} {{define "toolkit"}}
{{options . "componet_name"}}({{options . "componet_help"}})
{{end}} {{define "componet"}}
{{options . "componet_name"}}({{options . "componet_help"}}) {{$msg := .}}
{{range $index, $input := option . "inputs"}}
{{$type := index $input "type"}} {{$value := index $input "value" | parse $msg}} {{if index $input "label"}} {{end}} {{if eq $type "button"}} {{else if eq $type "submit"}} {{else if eq $type "file"}} {{else if eq $type "choice"}} {{$default_value := index $input "value"}} {{else if eq $type "password"}} {{else if eq $type "textarea"}} {{else}} {{end}}
{{end}}
{{if index .Meta "display_append"}} {{options . "display_append"}} {{else}} {{$msg := .}} {{range $field := append .}}{{end}} {{range $line := table .}} {{range $field := append $msg}}{{end}} {{end}}
{{$field}}
{{index $line $field|unescape}}
{{end}} {{if index .Meta "display_result"}} {{options . "display_result"}} {{else}}
{{result .Meta}}
{{end}} {{if index .Meta "display_div"}} {{options . "display_div"}} {{else}}
{{end}}
{{end}} {{define "mp"}} {{end}} {{define "tail"}} {{range $index, $lib := option . "scripts"}} {{end}} {{end}}