"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const handlebars = require("handlebars");
const _ = require("lodash");
/**
 * Convert a string to Pascal Case (removing non alphabetic characters).
 *
 * @example
 * 'hello_world'.toPascalCase() // Will return `HelloWorld`.
 * 'fOO BAR'.toPascalCase()     // Will return `FooBar`.
 *
 * @returns {string}
 *   The Pascal Cased string.
 */
handlebars.registerHelper('toPascalCase', function (value) {
    _.mixin({ 'pascalCase': _.flow(_.camelCase, _.upperFirst) });
    return _.pascalCase(value);
});
