Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/partials-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ exports.handlebars = function(options) {
* @return { undefined } [ This returns nothing. ]
*/
var loadPartials = function(template_engine_reference, root_directory, current_directory, template_extensions, delimiter_symbol) {
files = fs.readdirSync(current_directory);
var files = fs.readdirSync(current_directory);

for(var i = 0; i < files.length; i++) {
var fullPath = path.join(current_directory, files[i]);
stat = fs.statSync(fullPath);
var stat = fs.statSync(fullPath);

if(stat.isFile()) {
var file_extension = path.extname(fullPath).slice(1);
Expand Down Expand Up @@ -187,4 +187,4 @@ var validateTemplateExtensions = function(template_extensions) {
new Error('The template extensions passed into the ' + library_name + ' function are not an ARRAY or STRING type. Please fix this.')
}
return template_extensions;
}
}