Merge pull request #1096 from matthiasbeyer/fix-log-output
Register the no-escape escape functionality in handlebars
This commit is contained in:
commit
e2bf6c48ef
1 changed files with 2 additions and 0 deletions
|
@ -77,6 +77,8 @@ impl ImagLogger {
|
||||||
pub fn new(matches: &ArgMatches, config: Option<&Configuration>) -> Result<ImagLogger> {
|
pub fn new(matches: &ArgMatches, config: Option<&Configuration>) -> Result<ImagLogger> {
|
||||||
let mut handlebars = Handlebars::new();
|
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("black" , Box::new(self::template_helpers::ColorizeBlackHelper));
|
||||||
handlebars.register_helper("blue" , Box::new(self::template_helpers::ColorizeBlueHelper));
|
handlebars.register_helper("blue" , Box::new(self::template_helpers::ColorizeBlueHelper));
|
||||||
handlebars.register_helper("cyan" , Box::new(self::template_helpers::ColorizeCyanHelper));
|
handlebars.register_helper("cyan" , Box::new(self::template_helpers::ColorizeCyanHelper));
|
||||||
|
|
Loading…
Reference in a new issue