Skip to content

Commit

Permalink
engine
Browse files Browse the repository at this point in the history
  • Loading branch information
demingongo committed May 11, 2024
1 parent 33e3811 commit b4f2f00
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@novice1/app",
"private": false,
"version": "0.3.2",
"version": "0.3.3",
"description": "Create Express applications.",
"main": "lib/index.js",
"homepage": "https://kisiwu.github.io/novice-app/latest/",
Expand Down
6 changes: 6 additions & 0 deletions src/baseApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,12 @@ export abstract class BaseApp implements IApp {
return this;
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
engine(ext: string, fn: (path: string, options: object, callback: (e: any, rendered?: string | undefined) => void) => void): this {
this.__app.engine(ext, fn)
return this
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
get(setting: string): any {
return this.__app.get(setting);
Expand Down

0 comments on commit b4f2f00

Please sign in to comment.