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.
 
 
Ivan Polyakov 73c424d5ad build process fixed from stopping when guile is compiling modules and writing logs to stderr 2 years ago
example Switching to GNU Guile, loading data in the example 2 years ago
.drone.yml auto publishing 2 years ago
.gitignore init 2 years ago
.npmignore .drone.yml added to .npmignore 2 years ago
COPYING init 2 years ago
README.md package version shield 2 years ago
loader.js build process fixed from stopping when guile is compiling modules and writing logs to stderr 2 years ago
package-lock.json Switching to GNU Guile, loading data in the example 2 years ago
package.json build process fixed from stopping when guile is compiling modules and writing logs to stderr 2 years ago

README.md

sxml-loader

License: GPL v3 Build status Package version

Scheme Webpack

Scheme XML loader for webpack.

This loader uses GNU Guile as the Scheme interpreter and its SXML module. How to work with it, see the official manual.

Usage

See the full example in the example directory.

webpack.config.js:

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

Options

| Option  | Description                                                   |
| ======= | ============================================================= |
| doctype | The document type at the top of the markup. `html` by default |
| ------- | ------------------------------------------------------------- |
| expr    | A Scheme expression that processes your markup.               |
|         | Insert `SXML_LOADER_CONTENT` where you want to process        |
|         | the markup list.                                              |

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