From: Perrin H. <pe...@el...> - 2004-07-22 19:03:39
|
On Wed, 2004-07-21 at 17:28, Sam Tregar wrote: > If it's really just two places then yes, it does sound like overkill. > If you think you'll use it again in more places then it might not be a > bad idea. Up to three now... > > There's probably a way to do this with HTML::Template::Expr instead, > > which might be better, but I didn't see strftime in the docs. > > That would be another option, although you'll probably still end up > with the same strftime() call in two places, except now it will be two > templates instead of two element classes. That would actually be better, since this is really a display issue. I don't see any examples of date formatting. Would I need to subclass HTML::Template::Expr? If so, this would be a pretty significant change to the Krang classes. I'd have to make them all use a factory method for getting template objects. - Perrin |