Template-Plugin-Nbsp reviews

cpanratings
 

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.

Burak Gürsoy - 2005-12-22T04:33:02 (permalink)

7 out of 8 found this review helpful. Was this review helpful to you?  Yes No

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).

Geoff Simmons - 2005-12-21T23:11:23 (permalink)

4 out of 4 found this review helpful. Was this review helpful to you?  Yes No