Arc Forumnew | comments | leaders | submitlogin
2 points by nicwolff 6132 days ago | link | parent

Perl, HTML::Mason, and XHTML.pm:

<% xhtml( $ARGS{show} && $u->{name} or ( $u->{name} = $ARGS{name} ) ? [ a => { href => '?show=1' }, 'click here' ] : [ form => { method => 'POST' }, map [ input => $_ ], { name => 'name' }, { type => 'submit' } ] ) %>