#should I use inheritance here??
class WithActions, which {
- widget renders [ qw/fields actions/ ];
- fields renders [ field over func(viewport => 'fields') ];
- field renders [ 'viewport' ];
+ fragment widget [ qw(field_list actions) ];
+ fragment field_list [ field over func('viewport', 'fields') ];
+ fragment field [ 'viewport' ];
- actions renders [ action over func(viewport => 'actions')];
- action renders [ 'viewport' ];
+ fragment actions [ action over func(viewport => 'actions')];
+ fragment action [ 'viewport' ];
};
1;