Moonscript如何显示复选框

1
2
3
4
5
6
7
8
"/checkbok": =>
@url_for: =>
@html ->
form method: "POST", action: @url_for(), ->
input type: "hidden",
name: "csrf_token", value: @csrf_token
input type: "checkbox", name: "username"
input type: "checkbox", name: "password"