_loadViews() {
        let layouts = [];
        let partials = [];

        this.config.views.layouts.forEach(filepath => {
            layouts = layouts.concat(lsSync(path.resolve(this.path, filepath), 0));
        });
        this._addLayouts(layouts);

        // load the partials (handlebars-layouts requires that we also load the layouts as partials)
        this.config.views.partials.forEach(filepath => {
            partials = partials.concat(lsSync(path.resolve(this.path, filepath), 0));
        });
        this._addPartials(partials.concat(layouts));

        return this;
    }
/**
     * Load, compile, and register the Handlebars views, including layouts and partials.
     *
     * @returns {this}
     */
Load, compile, and register the Handlebars views, including layouts and partials.
@returns {this}
Load compile and register the Handlebars views including layouts and partials . @returns { this }
_loadViews() {
        let layouts = [];
        let partials = [];
        this.config.views.layouts.forEach(filepath => {
            layouts = layouts.concat(lsSync(path.resolve(this.path, filepath), 0));
        });
        this._addLayouts(layouts);
        this.config.views.partials.forEach(filepath => {
            partials = partials.concat(lsSync(path.resolve(this.path, filepath), 0));
        });
        this._addPartials(partials.concat(layouts));
        return this;
    }
_loadViews ( ) { let layouts = [ ] ; let partials = [ ] ; this . config . views . layouts . forEach ( filepath => { layouts = layouts . concat ( lsSync ( path . resolve ( this . path , filepath ) , 0 ) ) ; } ) ; this . _addLayouts ( layouts ) ; this . config . views . partials . forEach ( filepath => { partials = partials . concat ( lsSync ( path . resolve ( this . path , filepath ) , 0 ) ) ; } ) ; this . _addPartials ( partials . concat ( layouts ) ) ; return this ; }
Load, compile, and register the Handlebars views, including layouts and partials.
Load compile and register the Handlebars views including layouts and partials .
// load the partials (handlebars-layouts requires that we also load the layouts as partials)