Global.helma.Html.color (c)
render a color string if it contains hex characters only prefix it with "#" otherwise assume that it is a named color (eg. "yellow")

  • Parameter String:
    the color string
  • Deprecated
Sourcecode in /home/hannes/helma/modules/helma/Html.js:
702:   this.color = function(c) {
703:           if (c) {
704:               var nonhex = /[^0-9,a-f]/gi;
705:               if (!c.match(nonhex)) {
706:                   c = c.pad("0", 6);
707:                   res.write("#");
708:               }
709:           }
710:           res.write(c);
711:          return;
712:      }