use of com.hubspot.singularity.executor.handlebars.IfHasNewLinesOrBackticksHelper in project Singularity by HubSpot.
the class SingularityExecutorModule method providesHandlebars.
@Provides
@Singleton
public Handlebars providesHandlebars() {
// handlebars emits DEBUG logs before logger is properly configured
SingularityRunnerBaseLogging.quietEagerLogging();
final Handlebars handlebars = new Handlebars();
handlebars.registerHelper(BashEscapedHelper.NAME, new BashEscapedHelper());
handlebars.registerHelper(ShellQuoteHelper.NAME, new ShellQuoteHelper());
handlebars.registerHelper(IfPresentHelper.NAME, new IfPresentHelper());
handlebars.registerHelper(IfHasNewLinesOrBackticksHelper.NAME, new IfHasNewLinesOrBackticksHelper());
handlebars.registerHelper(EscapeNewLinesAndQuotesHelper.NAME, new EscapeNewLinesAndQuotesHelper());
return handlebars;
}
Aggregations