1.2.3 • Published 4 years ago
gulp-slm v1.2.3
gulp-slm
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>
Developer manuel
# Install dependencies
yarn
# Install dependencies
yarn test
gulp-slm is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0). See COPYRIGHT for details.
1.2.3
4 years ago
1.2.2
4 years ago
1.2.1
4 years ago
1.2.0
5 years ago
1.1.3
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.0.7
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
9 years ago
1.0.2
9 years ago
1.0.1
9 years ago
1.0.0
9 years ago
0.1.0
10 years ago
0.0.4
10 years ago
0.0.3
10 years ago
0.0.2
10 years ago
0.0.1
10 years ago
0.0.0
10 years ago