How to render colored text to the console produced by a templating engine which supports looping and variable substitution.
I've done some tests with swig, but it simply escapes the \u001b[32m
stuff.
Is there something in between sprintf
and a real HTML templating engine?
Update:
I've tried swig
for a while now and just using console.log
would've actually been more maintainable/readable :)
Am I the only one that would find something for outputting text to the console based on a model useful? Or am I approaching this from the wrong angle?