@@ -113,7 +113,7 @@ InstallDots.prototype.compilePath = function(path) {
113
113
} ;
114
114
115
115
InstallDots . prototype . compileAll = function ( ) {
116
- console . log ( "Compiling all doT templates..." ) ;
116
+ if ( doT . log ) console . log ( "Compiling all doT templates..." ) ;
117
117
118
118
var defFolder = this . __path ,
119
119
sources = fs . readdirSync ( defFolder ) ,
@@ -122,19 +122,19 @@ InstallDots.prototype.compileAll = function() {
122
122
for ( k = 0 , l = sources . length ; k < l ; k ++ ) {
123
123
name = sources [ k ] ;
124
124
if ( / \. d e f ( \. d o t | \. j s t ) ? $ / . test ( name ) ) {
125
- console . log ( "Loaded def " + name ) ;
125
+ if ( doT . log ) console . log ( "Loaded def " + name ) ;
126
126
this . __includes [ name . substring ( 0 , name . indexOf ( '.' ) ) ] = readdata ( defFolder + name ) ;
127
127
}
128
128
}
129
129
130
130
for ( k = 0 , l = sources . length ; k < l ; k ++ ) {
131
131
name = sources [ k ] ;
132
132
if ( / \. d o t ( \. d e f | \. j s t ) ? $ / . test ( name ) ) {
133
- console . log ( "Compiling " + name + " to function" ) ;
133
+ if ( doT . log ) console . log ( "Compiling " + name + " to function" ) ;
134
134
this . __rendermodule [ name . substring ( 0 , name . indexOf ( '.' ) ) ] = this . compilePath ( defFolder + name ) ;
135
135
}
136
136
if ( / \. j s t ( \. d o t | \. d e f ) ? $ / . test ( name ) ) {
137
- console . log ( "Compiling " + name + " to file" ) ;
137
+ if ( doT . log ) console . log ( "Compiling " + name + " to file" ) ;
138
138
this . compileToFile ( this . __destination + name . substring ( 0 , name . indexOf ( '.' ) ) + '.js' ,
139
139
readdata ( defFolder + name ) ) ;
140
140
}
0 commit comments