@dynacom/weave
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -36,7 +36,8 @@ const path = require( 'path' ); | ||
} else { | ||
fs.readdirSync( argument ) | ||
.forEach( fileName => { | ||
let templateName = path.basename( fileName, path.extname( fileName ) ); | ||
this.Templates[ templateName ] = new Template( path.resolve( argument, fileName ), { "Engine": this } ); | ||
} ); | ||
let templatePath = path.resolve( argument, fileName ); | ||
if ( fs.statSync( templatePath ) | ||
.isFile() ) { | ||
let templateName = path.basename( fileName, path.extname( fileName ) ); | ||
this.Templates[ templateName ] = new Template( templatePath, { "Engine": this } ); | ||
} | ||
} | ||
@@ -43,0 +44,0 @@ } ) |
{ | ||
"name": "@dynacom/weave" | ||
, "version": "0.1.4" | ||
, "version": "0.1.5" | ||
, "description": "HTML/Javascript templating framework" | ||
@@ -5,0 +5,0 @@ , "main": "index.js" |
5819
128