Template-Plugin-Nbsp reviews

RSS | Module Info | Add a review of Template-Plugin-Nbsp

Template-Plugin-Nbsp (0.01) *

Seems unnecessary as Geoff Simmons stated. It also uses "&nbsp;" named entity, which can create problems with XHTML (with the correct content-type header). Only few "named entities" are pre-defined in XML. One must use "&#160;" with XHTML docs or define nbsp manually in DTD (i.e. <!ENTITY nbsp "&#160;">).

See <www.w3.org/TR/REC-xml/#sec-predefined...; for pre-defined named entities.

Template-Plugin-Nbsp (0.01)

I don't see what advantages this has over Template Toolkit's own conditional operators. For example, using a logical OR:

<td>[% variable || '&nbsp;' %]</td>

... would achieve the same effect (with more characters required).