Skip to content

Commit

Permalink
chore: add usage info
Browse files Browse the repository at this point in the history
  • Loading branch information
learosema committed Nov 7, 2024
1 parent 7f0c063 commit 5fe70fb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,14 @@ There are a few built-in helper functions:
{{ include('_includes/partial.html', {title: 'some additional data'}) }} /* TODO */
```

## API
## Usage

```js
TODO :)
const result = await processTemplateFile(
'<h1>{{ title }}</h1>',
'index.html',
{title: 'Test'}
);

console.log(result) // <h1>Test</h1>
```

0 comments on commit 5fe70fb

Please sign in to comment.