diff --git a/src/file-handlers.ts b/src/file-handlers.ts index cc16972..313b6cf 100644 --- a/src/file-handlers.ts +++ b/src/file-handlers.ts @@ -4,7 +4,7 @@ import SqrlErr from './err' import compile from './compile' import { getConfig } from './config' import { getPath, readFile, loadFile } from './file-utils' -import { promiseImpl, copyProps } from './utils' +import { promiseImpl } from './utils' /* TYPES */ @@ -34,7 +34,6 @@ interface DataObj { * `options.filename` so it must be set prior to calling this function. * * @param {Options} options compilation options - * @param {String} [template] template source * @return {(TemplateFunction|ClientFunction)} * Depending on the value of `options.client`, either type might be returned. * @static @@ -123,13 +122,6 @@ function renderFile (filename: string, data: DataObj, cb?: CallbackFn) { if (data.settings['view cache']) { Config.cache = true } - // Undocumented after Express 2, but still usable, esp. for - // items that are unsafe to be passed along with data, like `root` - var viewOpts = data.settings['view options'] - - if (viewOpts) { - copyProps(Config, viewOpts) - } } Config.filename = filename // Make sure filename is right