Bootstrap Email Bootstrap Email

TemplateLoader

Util for loading template files

Constructor

new TemplateLoader()

Source:

Members

(static) encoding :string

Default file encoding for templates

Default Value:
  • utf8
Source:

(static) extname :string

Default extension for template files

Default Value:
  • .ejs
Source:

(static) templatesPath :string

Path to templates

Default Value:
  • path-to-module/src/assets/templates
Source:

Methods

(static) .load(dirPathopt) → {Object}

Parameters:
dirPath ( string ) <optional>

Defaults to TemplateLoader.templatesPath

Source: