put coloring logics in the Perl code, instead of limited Xslate syntax