Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Catalyst::VIew::TT - format an object

by tospo (Hermit)
on Jun 27, 2011 at 21:50 UTC ( #911621=note: print w/ replies, xml ) Need Help??


in reply to Re: Catalyst::VIew::TT - format an object
in thread Catalyst::VIew::TT - format an object

I don't want to use a filter, I would like to access a method defined in the view class in the view itself. The Bio::Seq class is part of the large BioPerl bundle and I don't want to subclass it (and use the subclass everywhere in my code) just to add a method that really doesn't belong to a class that is all about handling sequence data. What if I want to change the HTML code of the output? I would have to do that in My::Bio::Seq and then what if I use this in more than one web app and I want different rendering of the seq features? I don't think that would be a good idea for the same reason that you wouldn't want to provide a "to_html" method to every DBIx result set class.


Comment on Re^2: Catalyst::VIew::TT - format an object

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://911621]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2015-07-30 05:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls