From: Perrin H. <pe...@el...> - 2004-07-21 20:36:12
|
Formatting cover_date for use in both my article template and my category template currently requires me to override fill_template and add an identical strftime in two places. I was thinking about putting this in one spot, maybe by separating the strftime call into a method with a default in Krang::ElementClass and then overriding it in a subclass that I make all of my elements inherit from. Does that sound worth it, or over-engineered? 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. - Perrin |