You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
vilor 3a214ca068 Merge pull request 'Version 0.2.0' (#1) from dev into master 2 years ago
example example 2 years ago
src interpreter settings 2 years ago
.drone.yml auto publishing 2 years ago
.gitignore init 2 years ago
.npmignore npmignore 2 years ago
COPYING init 2 years ago
README.md interpreter settings 2 years ago
package-lock.json init 2 years ago
package.json new version 2 years ago

README.md

sxml-loader

Build Status License: GPL v3

Scheme Webpack

Scheme XML loader for webpack.

Usage

See the full example in the example directory.

webpack.config.js:

module.exports = {
  module: {
    // ...
    rules: [
      {
        test: /\.sxml$/,
        use: ['html-loader', 'sxml-loader'],
      },
    ],
    // ...
  },
}

By default SXML will be processed by Chicken Scheme with sxml-serializer egg. You can use a different interpreter by setting the loader options.

GNU Guile example:

// ...
use: [
  'html-loader',
  {
    loader: 'sxml-loader',
    options: {
      interpreter: 'guile',
      flags: ['-c'], // "eval" flag (in Guile case "-c") should be last.

      // SXML_LOADER_CONTENT will be replaced with processing SXML markup.
      expr: '(use-modules (sxml simple))(sxml->xml SXML_LOADER_CONTENT)',
    },
  },
],
// ...

License

GPLv3 or later. See full text in the COPYING file or in GNU website: https://www.gnu.org/licenses/gpl-3.0-standalone.html