Ivan Polyakov
2 years ago
1 changed files with 14 additions and 2 deletions
@ -1,3 +1,15 @@
@@ -1,3 +1,15 @@
|
||||
module.exports = function(content) { |
||||
return content; |
||||
const { spawn } = require('child_process'); |
||||
|
||||
module.exports = function(content, map, meta) { |
||||
const cb = this.async(); |
||||
const expr = `(import sxml-serializer)(display (serialize-sxml ${content}))`; |
||||
const scheme = spawn('chicken-csi', ['-e', expr]); |
||||
|
||||
scheme.stdout.on('data', data => { |
||||
cb(null, data, map, meta); |
||||
}); |
||||
|
||||
scheme.stderr.on('data', data => { |
||||
console.error(data); |
||||
}); |
||||
} |
||||
|
Loading…
Reference in new issue