File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Library that adds support to asynchronous function helpers to handlebars lib.
7
7
npm install handlebars-async-helpers
8
8
```
9
9
10
- ### Hot wo use it.
10
+ ### How to use
11
11
``` javascript
12
12
const handlebars = require (' handlebars' ),
13
13
asyncHelpers = require (' handlebars-async-helpers' )
Original file line number Diff line number Diff line change 1
- const package = require ( './package.json' )
1
+ const app = require ( './package.json' )
2
2
const { registerCoreHelpers } = require ( './helpers' )
3
3
4
4
const isPromise = ( obj ) => ! ! obj && ( typeof obj === 'object' || typeof obj === 'function' ) && typeof obj . then === 'function'
@@ -81,7 +81,7 @@ function asyncHelpers(hbs) {
81
81
return compiled . call ( handlebars , context , execOptions )
82
82
}
83
83
}
84
- handlebars . ASYNC_VERSION = package . version
84
+ handlebars . ASYNC_VERSION = app . version
85
85
86
86
registerCoreHelpers ( handlebars )
87
87
You can’t perform that action at this time.
0 commit comments