by bluefox · 8y ago · 0 comments
(pbox "login/register"
(form (text "username:" :name "user")
(pass "password:" :name "pass")
(check "remember me" :name "mem")
(group
(button "Login" :onclick "login(); return false")
(button "Register" :onclick "register(); return false"))
(link "what's my password?" :href "/password")))And you can do the same thing with template engines like Twig with macros. Futhermore, Web frameworks like Symfony already have macros that are necessary to display a form. You don't even have to write them and that is a strong point of Symfony compared to weird self-made Lisp template engine.