<%doc> =for doc The C template takes some objects (usually just one) from C and displays the object's properties in a table. =cut % foreach my $item ( @$objects ) { <& view_item, item => $item &> <%doc> =for doc The C template also displays a list of other objects related to the first one via C style relationships; this is done by calling the C method - see L - to return a list of has-many accessors. Next it calls each of those accessors, and displays the results in a table. =cut
Back to listing <& view_related, object => $item &> <& button, obj => $item, action => "edit" &> <& button, obj => $item, action => "delete" &> % }