Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.
/ gulp-slm Public archive

⚡ Compile Slm templates with gulp, Migrated to https://github.com/simnalamburt/npm/tree/master/packages/gulp-slm

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

simnalamburt/gulp-slm

Repository files navigation

This repo has been migrated to the simnalamburt/npm:packages/gulp-slm.

 

 

gulp-slm version downloads

Let's use Slm with Gulp!

doctype html
html
  head
    meta charset="utf-8"
    title = this.title
  body
    h1 = this.title
    p = this.text
import slm from 'gulp-slm'

gulp.task('slm', _ => {
  const data = {
    title: 'Hello, world!',
    text: 'Hello world example for slm template.',
  }

  return gulp
    .src('./src/*.slm')
    .pipe(slm({locals: data}))
    .pipe(gulp.dest('./build/'))
})
Result (whitespace included for readability)
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>Hello, world!</title>
  </head>
  <body>
    <h1>Hello, world!</h1>
    <p>Hello world example for slm template.</p>
  </body>
</html>

 


gulp-slm is primarily distributed under the terms of both the Apache License (Version 2.0) and the MIT license. See COPYRIGHT for details.

About

⚡ Compile Slm templates with gulp, Migrated to https://github.com/simnalamburt/npm/tree/master/packages/gulp-slm

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published