http://www.perlmonks.org?node_id=348418


in reply to Can HTML::Template do this?

You can use DEFAULT param (new in HTML::Template version 2.6) of TMPL_VAR tag

<TMPL_VAR NAME=SECOND DEFAULT="&nbsp;">