Skip to content

Commit

Permalink
📝 Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
frinyvonnick committed Dec 5, 2019
1 parent f6f6e12 commit 2b1879b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -38,7 +38,7 @@ nodeHtmlToImage({
output: './image.png',
html: '<html><body>Hello world!</body></html>'
})
.then(console.log('The image was created successfully!'))
.then(() => console.log('The image was created successfully!'))
```

### Options
Expand All @@ -65,7 +65,7 @@ nodeHtmlToImage({
html: '<html><body>Hello {{name}}!</body></html>',
content: { name: 'you' }
})
.then(console.log('The image was created successfully!'))
.then(() => console.log('The image was created successfully!'))
```

[Handlebars](https://handlebarsjs.com/) provides a lot of expressions to handle common use cases like conditions or loops.
Expand Down

0 comments on commit 2b1879b

Please sign in to comment.