Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sammarks/neutrino-middleware-xml
Neutrino middleware for creating XML files based on EJS templates.
https://github.com/sammarks/neutrino-middleware-xml
ejs neutrino neutrino-middleware xml xml-template
Last synced: 18 days ago
JSON representation
Neutrino middleware for creating XML files based on EJS templates.
- Host: GitHub
- URL: https://github.com/sammarks/neutrino-middleware-xml
- Owner: sammarks
- License: mit
- Created: 2018-07-21T20:43:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-21T20:47:38.000Z (over 6 years ago)
- Last Synced: 2024-10-08T15:50:28.308Z (28 days ago)
- Topics: ejs, neutrino, neutrino-middleware, xml, xml-template
- Language: JavaScript
- Size: 70.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
![][header-image]
[![CircleCI][circleci-image]][circleci-url]
[![NPM version][npm-version]][npm-url]
[![NPM downloads][npm-downloads]][npm-url]
![License][license]
![Issues][issues]`neutrino-middleware-xml` is a Neutrino Middleware for the [Webpack XML Template Plugin.][webpack-link]
## Get Started
```sh
npm install --save-dev neutrino-middleware-xml
``````js
module.exports = {
use: [
'neutrino-middleware-xml',
{
files: [
{
template: path.join(__dirname, 'xml-template.ejs'),
filename: 'path/to/result.xml',
data: {
foo: 'bar'
}
}
]
}
]
}
```## Features
- Uses the [Webpack XML Template Plugin][webpack-link] to generate XML files based on a template and passed data.
- Options passed to this middleware are passed directly to the plugin.
See [the plugin's documentation][webpack-link] for more details.[header-image]: https://raw.githubusercontent.com/sammarks/art/master/neutrino-middleware-xml/header.jpg
[circleci-image]: https://img.shields.io/circleci/project/github/sammarks/neutrino-middleware-xml.svg
[circleci-url]: https://circleci.com/gh/sammarks/neutrino-middleware-xml/tree/master
[npm-version]: https://img.shields.io/npm/v/neutrino-middleware-xml.svg
[npm-downloads]: https://img.shields.io/npm/dm/neutrino-middleware-xml.svg
[npm-url]: https://www.npmjs.com/package/neutrino-middleware-xml
[license]: https://img.shields.io/github/license/sammarks/neutrino-middleware-xml.svg
[issues]: https://img.shields.io/github/issues/sammarks/neutrino-middleware-xml.svg[webpack-link]: https://github.com/rvanmil/xml-webpack-plugin