<!-- BEGIN site/truncate.tt -->
	[%
        DEFAULT chars = 30; # optional var
        IF str.length > chars;
    %]
     <span class="acronym" title="[% str | html %]">
        [% str | truncate(chars) | html %]
     </span>
	[% ELSE; str | html; END; %]					
<!-- END site/truncate.tt -->