Spotted typo in the code above which was confusing things:

[snip]

    coerce 'My.View'
>         => from 'Str'
>         => via { My::ViewFactory->new( $_ ) };
>

Should have read:

    coerce 'My.View'
>         => from 'Str'
>         => via { My::ViewFactory->plugin_get( $_ ) };
>


Although I was considering making this coercion handled by an attribute
trait anyway (see further down in the thread)



-- 
Ian Sillitoe
CATH Team -- http://cathdb.info

Reply via email to