[Templates] print "n" nicely if n = bytes

Andy Wardley abw@wardley.org
Mon, 18 Sep 2006 09:09:59 +0100


Randal L. Schwartz wrote:
>     [% MACRO nice(n) BLOCK;
          [...niceness...]
>     END %]

Nice!  [groan]

Incidentally, you don't need the BLOCK...END.  You can assign the MACRO direct 
to the IF/ELSE.

    MACRO nice(n)
      IF ...
      END;

A