How to use the logger function from handlebars

Find comprehensive JavaScript handlebars.logger code examples handpicked from public code repositorys.

775
776
777
778
779
780
781
782
783
784
})

//DEBUG: https://gist.github.com/karlwestin/3487951
//Put {{log 0 item}} anywhere in template to print out 'item'
handlebars.logger.log = function(level) {
  if(level >= handlebars.logger.level) {
    //console.log.apply(console, [].concat(["Handlebars: "], _.toArray(arguments)));
    console.log.apply(console, arguments)
  }
}
fork icon0
star icon1
watch icon1

+ 8 other calls in file