0.3.3 • Published 2 years ago

sxml-loader v0.3.3

Weekly downloads
-
License
GPL-3.0-or-later
Repository
-
Last release
2 years ago

sxml-loader

License: GPL v3 Build status Package version

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.                                       |
| -------------- | ------------------------------------------------------ |
| afterTranslate | A hook called after the SXML to HTML translation       |
|                | is complete. `afterTranslate(markup: string): string`  |

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

0.3.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.3

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago