% local form = ... require("viewfunctions") %> <% function checked(b) if b then return "checked" end return "" end port = form.config.Port listen_address = form.config.ListenAddress use_dns = checked(form.config.UseDNS) password_authentication = checked(form.config.PasswordAuthentication) permit_root_login = checked(form.config.PermitRootLogin) %>