Merge pull request #1096 from matthiasbeyer/fix-log-output

Register the no-escape escape functionality in handlebars
This commit is contained in:
Matthias Beyer 2017-09-20 22:00:53 +02:00 committed by GitHub
commit e2bf6c48ef

View file

@ -77,6 +77,8 @@ impl ImagLogger {
pub fn new(matches: &ArgMatches, config: Option<&Configuration>) -> Result<ImagLogger> {
let mut handlebars = Handlebars::new();
handlebars.register_escape_fn(::handlebars::no_escape);
handlebars.register_helper("black" , Box::new(self::template_helpers::ColorizeBlackHelper));
handlebars.register_helper("blue" , Box::new(self::template_helpers::ColorizeBlueHelper));
handlebars.register_helper("cyan" , Box::new(self::template_helpers::ColorizeCyanHelper));