Skip to content

Commit

Permalink
updates readme with Renderer constructor options
Browse files Browse the repository at this point in the history
  • Loading branch information
dresende committed Feb 6, 2024
1 parent af398a5 commit 8ad7d6f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,16 @@ app.set("view engine", "html");

// ...
```

### Options

```js
import { Renderer } from "keikan"

// defaults
const keikan = new Renderer({
debug : false, // true/false
extension : "html", // will be appended to view names if name does not end with .html
resolver : Resolver("html"), // internal resolver (path, base_path)
});
```

0 comments on commit 8ad7d6f

Please sign in to comment.