in reply to Can HTML::Template do this?
You can use DEFAULT param (new in HTML::Template version 2.6) of TMPL_VAR tag