npm i zox zox-plugins zox-handlebars
Use handlebars templates:
Write custom helpers and decorators:
@HandlebarsHelper('ifEquals')
export class IfEqualsHelper implements IHandlebarsHelper
{
public handle(context, lvalue, rvalue, options): string
{
return lvalue == rvalue ? options.fn(context) : options.inverse(context);
}
}