src/util/TemplateFile.js
function TemplateFile(path) {

    this._buffer = FS.readFileSync(path, {"encoding": "utf8"});
    if (!this._buffer || this._buffer.length === 0) {
        throw new Error("Could not read " + path);
    }
}
function TemplateFile(path) {

    this._buffer = FS.readFileSync(path, {"encoding": "utf8"});
    if (!this._buffer || this._buffer.length === 0) {
        throw new Error("Could not read " + path);
    }
}
function TemplateFile ( path ) { this . _buffer = FS . readFileSync ( path , { "encoding" : "utf8" } ) ; if ( ! this . _buffer || this . _buffer . length === 0 ) { throw new Error ( "Could not read " + path ) ; } }
Class to handle reading and writing template files.
@constructor
@param {String} path Path to template file
@throws {Error} If file could not be read.
Class to handle reading and writing template files .