File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,11 @@ function run() {
148148 vals [ p ] = envVars [ p ] ;
149149 }
150150
151+ // strict implies no-with
152+ if ( argv [ 'strict' ] ) {
153+ argv [ 'no-with' ] = true ;
154+ }
155+
151156 let opts = {
152157 filename : path . resolve ( process . cwd ( ) , templatePath ) ,
153158 rmWhitespace : argv [ 'rm-whitespace' ] ,
@@ -157,13 +162,8 @@ function run() {
157162 delimiter : argv [ 'delimiter' ] ,
158163 openDelimiter : argv [ 'open-delimiter' ] ,
159164 closeDelimiter : argv [ 'close-delimiter' ] ,
165+ _with : ! argv [ 'no-with' ] ,
160166 } ;
161- if ( opts [ 'strict' ] ) {
162- opts . noWith = true ;
163- }
164- if ( argv [ 'no-with' ] ) {
165- opts . _with = false ;
166- }
167167
168168 let template = fs . readFileSync ( opts . filename ) . toString ( ) ;
169169 let output = ejs . render ( template , vals , opts ) ;
You can’t perform that action at this time.
0 commit comments