engine-base
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -88,2 +88,5 @@ 'use strict'; | ||
} | ||
if (typeof cb !== 'function') { | ||
return compileSync(str, options); | ||
} | ||
try { | ||
@@ -167,3 +170,5 @@ cb(null, compileSync(str, options)); | ||
} | ||
if (typeof cb !== 'function') { | ||
return renderSync(str, options); | ||
} | ||
try { | ||
@@ -170,0 +175,0 @@ cb(null, renderSync(str, locals)); |
{ | ||
"name": "engine-base", | ||
"description": "Default engine for Template.", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "https://github.com/jonschlinkert/engine-base", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
14540
274