[% MACRO display_line(item) BLOCK; FOR col = classmetadata.columns; NEXT IF col == "id"; ""; "" IF item.$col.moniker; # it's an object item.$col; "" IF item.$col.moniker; ""; END; button(item, "edit"); button(item, "delete"); END %] [% MACRO button(obj, action) BLOCK; %]
[% END %]