Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wealthbar/slm-loader
SLM/SLIM Template Loader for Webpack
https://github.com/wealthbar/slm-loader
Last synced: about 5 hours ago
JSON representation
SLM/SLIM Template Loader for Webpack
- Host: GitHub
- URL: https://github.com/wealthbar/slm-loader
- Owner: WealthBar
- License: mit
- Created: 2016-01-17T23:37:26.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-29T17:39:47.000Z (almost 6 years ago)
- Last Synced: 2024-11-01T10:16:29.081Z (16 days ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 10
- Watchers: 3
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
** 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-loader
SLM/SLIM Template Loader for WebpackImport [SLM/SLIM][1] templates with Webpack.
[SLM][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.## Basic Setup
```
{ test: /\.html\.(slm|slim)/, loader: "slm" }
```## Recommended Usage
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 imagesYou can also combine it with other HTML template handlers such as
[ngtemplate-loader][4] if you are using it with AngularJS.```
{ test: /\.html\.(slm|slim)$/, loader: 'ngtemplate!html!slm' },
```[1]: https://github.com/slm-lang/slm
[2]: http://slim-lang.com/
[3]: https://github.com/webpack/html-loader
[4]: https://github.com/WearyMonkey/ngtemplate-loader