/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/gulp-tale-jade@1.0.1/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
const through=require("through2"),gutil=require("gulp-util"),spawn=require("child_process").spawn,PLUGIN_NAME="gulp-tale-jade";function compile(e,r){var t=spawn("php",[__dirname+"/support/compile-jade.php","--file",e.path,"--pretty","--standalone"]),n=new Buffer("");t.stdout.on("data",(function(e){n=Buffer.concat([n,new Buffer(e.toString())])})),t.stderr.on("data",(function(e){n=Buffer.concat([n,new Buffer(e.toString())])})),t.on("close",(function(t){if(t>0){var u=new gutil.PluginError(PLUGIN_NAME,{message:n.toString()});return r(u,e)}return e.contents=n,e.path=e.path.replace(/\.(php\.)?(jade|jd)$/,".php"),r(null,e)}))}function gulpTaleJade(){return through.obj((function(e,r,t){return e.isNull()?t(null,e):e.isBuffer()?compile(e,t):e.isStream()?t(new gutil.PluginError(PLUGIN_NAME,{message:"No support for streams"}),e):void 0}))}module.exports=gulpTaleJade;
//# sourceMappingURL=/sm/15bc165dafd2009dcb70ad57cd55808e86c1600d7b1621ffc5712adb1b689271.map