Lines Matching refs:filename
170 Transformer.prototype.compileFile = function (filename, options) { argument
175 return tr.normalizeFn(this._tr.compileFile(filename, options));
178 return tr.normalize(this._tr.renderFile(filename, options, locals)).body;
182 if (options.filename === undefined) options.filename = filename;
183 return this.compile(tr.readFileSync(filename, 'utf8'), options);
186 Transformer.prototype.compileFileAsync = function (filename, options, cb) { argument
191 return tr.normalizeFnAsync(this._tr.compileFileAsync(filename, options), cb);
193 return tr.normalizeFnAsync(this.compileFile(filename, options), cb);
196 if (options.filename === undefined) options.filename = filename;
197 return tr.normalizeFnAsync(tr.readFile(filename, 'utf8').then(function (str) {
236 Transformer.prototype.compileFileClient = function (filename, options) { argument
245 return tr.normalize(this._tr.compileFileClient(filename, options));
248 if (options.filename === undefined) options.filename = filename;
249 return tr.normalize(this._tr.compileClient(tr.readFileSync(filename, 'utf8'), options));
252 Transformer.prototype.compileFileClientAsync = function (filename, options, cb) { argument
257 return tr.normalizeAsync(this._tr.compileFileClientAsync(filename, options), cb);
259 return tr.normalizeAsync(this._tr.compileFileClient(filename, options), cb);
262 if (options.filename === undefined) options.filename = filename;
263 return tr.normalizeAsync(tr.readFile(filename, 'utf8').then(function (str) {
318 Transformer.prototype.renderFile = function (filename, options, locals) { argument
324 return tr.normalize(this._tr.renderFile(filename, options, locals));
327 if (options.filename === undefined) options.filename = filename;
328 return tr.normalize(this._tr.render(tr.readFileSync(filename, 'utf8'), options, locals));
330 var compiled = this.compileFile(filename, options);
334 Transformer.prototype.renderFileAsync = function (filename, options, locals, cb) { argument
344 return tr.normalizeAsync(this._tr.renderFileAsync(filename, options, locals), cb);
346 return tr.normalizeAsync(this._tr.renderFile(filename, options, locals), cb);
349 return tr.normalizeAsync(this.compileFileAsync(filename, options).then(function (compiled) {
354 if (options.filename === undefined) options.filename = filename;
355 return tr.normalizeAsync(tr.readFile(filename, 'utf8').then(function (str) {