/** * A helper class to provide a convenient and consistent way to render templates. * * @class TemplateFactory * @module StructureJS * @submodule util * @requires StringUtil * @requires Handlebars * @author Robert S. (www.codeBelt.com) * @static */ declare class TemplateFactory { /** * A constant value for using Underscore or Lodash templates. * * @property UNDERSCORE * @type {string} * @public * @final * @static */ static UNDERSCORE: string; /** * A constant value for using Handlebars templates. This is the default template engine. * * @property HANDLEBARS * @type {string} * @public * @final * @static */ static HANDLEBARS: string; /** * Sets the template engine type for this TemplateFactory class. The default is TemplateFactory.HANDLEBARS * * @property templateEngine * @type {string} * @default TemplateFactory.HANDLEBARS * @public * @static */ static templateEngine: string; /** * The global namespace for pre-compiled templates. * * @property templateNamespace * @type {string} * @default 'JST' * @public * @static */ static templateNamespace: string; constructor(); /** * Creates a template. * * @method create * @param templatePath {any} * @param [data=any] * @returns {string} * @public * @static * @example * TemplateFactory.create('templateName', {some: 'data'}); */ static create(templatePath: any, data?: any): string; } export default TemplateFactory;