{{define "head"}} code {{end}} {{define "void"}}{{end}} {{define "detail"}}{{detail .}}{{end}} {{define "option"}}{{option .}}{{end}} {{define "append"}}{{append .}}{{end}} {{define "result"}}{{result .}}{{end}} {{define "clipboard"}}
clipboard
{{end}} {{define "componet"}}
{{option .Meta "componet_help"}}({{option .Meta "context"}}.{{option .Meta "componet_cmd"}}) {{$form_type := option . "form_type"|meta}} {{if eq $form_type "upload"}} {{end}}
{{range $index, $input := option . "inputs"}}
{{$type := index $input "type"}} {{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}} {{end}}
{{end}}
{{if eq $form_type "upload"}} {{end}} {{if index .Meta "display_append"}} {{option .Meta "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"}} {{option .Meta "display_result"}} {{else}}
{{result .Meta}}
{{end}}
{{end}} {{define "tail"}} {{end}}