MyMonkName has asked for the wisdom of the Perl Monks concerning the following question:
I am developing a certain application that uses HTML::Template. For each template that it uses, I find that a certain number of options to new() are generally needed, and a certain number of tags are always supplied to param(). So far, I've created a class MyApp::Template that wraps around the methods from HTML::Template that I need (new(), param(), output() &c.) and it seems to be working fine.
If I was starting from scratch, what reasons could there be for trying to inherit/override HTML::Template methods instead?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Wrap a method or inherit a method?
by GrandFather (Saint) on Dec 19, 2011 at 00:39 UTC |