Skip to content

Commit

Permalink
updated: readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Dec 1, 2023
1 parent 44b23dc commit fe90c65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export default {
If you want to use `pug` as your template engine, your `riot.config.js` might look like this

```js
const { registerPreprocessor } = require('@riotjs/compiler')
const { render } = require('pug')
import { registerPreprocessor } from '@riotjs/compiler'
import { render } from 'pug'

// register the pug preprocessor
registerPreprocessor('template', 'pug', (code, options) => {
Expand All @@ -71,7 +71,7 @@ registerPreprocessor('template', 'pug', (code, options) => {
}
})

module.exports = {
export default {
template: 'pug',
}
```
Expand Down

0 comments on commit fe90c65

Please sign in to comment.