add extended variable checking

This commit is contained in:
2017-05-01 16:57:53 +02:00
parent 4967bd6a60
commit 2b50191093
17 changed files with 415 additions and 118 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import * as plugins from './smarthbs.plugins'
/**
* registers a directory of partials to make them available within handlebars compilation
*/
export let registerPartialDir = (dirPathArg: string) => {
export let registerPartialDir = (dirPathArg: string): Promise<any> => {
let done = plugins.smartq.defer()
plugins.smartfile.fs.listFileTree(dirPathArg, '**/*.hbs').then(hbsFileArrayArg => {
for (let hbsFilePath of hbsFileArrayArg) {