|
|
@ -9,7 +9,7 @@ const schema = { |
|
|
|
properties: { |
|
|
|
properties: { |
|
|
|
expr: { |
|
|
|
expr: { |
|
|
|
type: 'string', |
|
|
|
type: 'string', |
|
|
|
default: '(use-modules (sxml simple))(sxml->xml SXML_LOADER_CONTENT)', |
|
|
|
default: '(define loader-context \"SXML_LOADER_CONTEXT\")(use-modules (sxml simple))(sxml->xml SXML_LOADER_CONTENT)', |
|
|
|
}, |
|
|
|
}, |
|
|
|
doctype: { |
|
|
|
doctype: { |
|
|
|
type: 'string', |
|
|
|
type: 'string', |
|
|
@ -36,6 +36,7 @@ module.exports = function(content, map, meta) { |
|
|
|
if (options.expr) |
|
|
|
if (options.expr) |
|
|
|
expr = options.expr; |
|
|
|
expr = options.expr; |
|
|
|
expr = expr.replace('SXML_LOADER_CONTENT', content); |
|
|
|
expr = expr.replace('SXML_LOADER_CONTENT', content); |
|
|
|
|
|
|
|
expr = expr.replace('SXML_LOADER_CONTEXT', this.context + '/'); |
|
|
|
|
|
|
|
|
|
|
|
const cb = this.async(); |
|
|
|
const cb = this.async(); |
|
|
|
runScheme('guile', ['-c', expr]).then(data => { |
|
|
|
runScheme('guile', ['-c', expr]).then(data => { |
|
|
|