Fix #11 and Cleanup dependencies

This commit is contained in:
Jai A
2020-06-26 22:35:20 -07:00
parent 6e301601f9
commit 8540e09ba7
5 changed files with 60 additions and 10 deletions

View File

@@ -1,8 +1,13 @@
mod contains;
mod format_human;
mod equals;
use handlebars::*;
pub fn register_helpers(handlebars: &mut Handlebars) {
handlebars.register_helper("contains", Box::new(contains::ContainsHelper));
handlebars.register_helper("format", Box::new(format_human::HumanFormatHelper));
//This helper is not used yet, but could be useful in many circumstances
handlebars.register_helper("equals", Box::new(equals::EqualsHelper));
}