Skip to content

SLM/SLIM Template Loader for Webpack

License

Notifications You must be signed in to change notification settings

redguava/slm-loader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

** 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 Webpack

Import SLM/SLIM templates with Webpack.

SLM is a JS port of the Ruby SLIM 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 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 ngtemplate-loader if you are using it with AngularJS.

{ test: /\.html\.(slm|slim)$/, loader: 'ngtemplate!html!slm' },

About

SLM/SLIM Template Loader for Webpack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%