http://qs321.pair.com?node_id=585242


in reply to HTML::Template : How to separate code and html with lesser maintenance issues

you could use HTC's switch/case tag.
HTC doesn't have expressions yet, but switch/case allows simple string comparison.

<tmpl_switch name="item"> <tmpl_case SELECT> ... <tmpl_case CONTINUE> ... <tmpl_case DENIED> ... </tmpl_switch>