[% page.form_id_count = 0; PROCESS macros; page.menu = [ [ '/user/edit', 'Simple form' ], [ '/user/byhand', 'By hand' ], [ '/user/date', 'With dates' ], [ '/user/compound', 'Compound fields' ], ]; # Load the template to generate HTML widgets if a form is found PROCESS form_widgets.tt IF form; %] [% BLOCK macros; MACRO start_form( action, method, other ) BLOCK; method = method && method.match('[Pp][Oo][Ss][Tt]') ? 'post' : 'get'; '