slm-loader
Version:
SLM/SLIM Template Loader for Webpack
35 lines (23 loc) • 1.15 kB
Markdown
** Note: Looking for a new maintainer **
Due to the limited support for Angular 2 syntax offered by SLIM/SLM we are migrating to PUG. This project is looking for a new maintainer. If you are using slm-loader and are interested in accepting pull requests I would be happy to transfer the project to you.
SLM/SLIM Template Loader for Webpack
Import [SLM/SLIM][1] templates with Webpack.
[][1] is a JS port of the Ruby [SLIM][2] template language for HTML. This
loader allows you to use these templates in your Webpack projects.
```
{ test: /\.html\.(slm|slim)/, loader: "slm" }
```
It is highly recommended to combine slm-loader with the [html-loader][3] to get
features like minification and handling of src assets such as images
You can also combine it with other HTML template handlers such as
[][4] if you are using it with AngularJS.
```
{ test: /\.html\.(slm|slim)$/, loader: 'ngtemplate!html!slm' },
```
[]: https://github.com/slm-lang/slm
[]: http://slim-lang.com/
[]: https://github.com/webpack/html-loader
[]: https://github.com/WearyMonkey/ngtemplate-loader