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?
In reply to Wrap a method or inherit a method? by MyMonkName
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |