File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 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.
77npm install handlebars-async-helpers
88```
99
10- ### Hot wo use it.
10+ ### How to use
1111``` javascript
1212const handlebars = require (' handlebars' ),
1313 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' )
22const { registerCoreHelpers } = require ( './helpers' )
33
44const isPromise = ( obj ) => ! ! obj && ( typeof obj === 'object' || typeof obj === 'function' ) && typeof obj . then === 'function'
@@ -81,7 +81,7 @@ function asyncHelpers(hbs) {
8181 return compiled . call ( handlebars , context , execOptions )
8282 }
8383 }
84- handlebars . ASYNC_VERSION = package . version
84+ handlebars . ASYNC_VERSION = app . version
8585
8686 registerCoreHelpers ( handlebars )
8787
You can’t perform that action at this time.
0 commit comments