We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eccc3b commit af998e5Copy full SHA for af998e5
index.js
@@ -284,11 +284,9 @@ async function fastifyView (fastify, opts) {
284
285
function readCallbackParser (page, html, localOptions) {
286
if ((type === 'ejs') && viewExt && !globalOptions.includer) {
287
- globalOptions.includer = (originalPath, parsedPath) => {
288
- return {
289
- filename: parsedPath || join(templatesDir, originalPath + '.' + viewExt)
290
- }
291
+ globalOptions.includer = (originalPath, parsedPath) => ({
+ filename: parsedPath || join(templatesDir, originalPath + '.' + viewExt)
+ })
292
}
293
if (localOptions) {
294
for (const key in globalOptions) {
0 commit comments