https://github.com/mitranim/gulp-statil
Gulp plugin for statil, a lightweight static site generator.
https://github.com/mitranim/gulp-statil
Last synced: 5 months ago
JSON representation
Gulp plugin for statil, a lightweight static site generator.
- Host: GitHub
- URL: https://github.com/mitranim/gulp-statil
- Owner: mitranim
- Created: 2015-02-25T17:17:59.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-12-17T11:31:08.000Z (about 7 years ago)
- Last Synced: 2025-08-15T17:30:36.721Z (5 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Description
This is a [`gulp`](http://gulpjs.com) plugin for
[`Statil`](https://github.com/mitranim/statil), a lightweight templating utility.
Contrary to its name, this plugin doesn't actually use Statil. It simply provides a file buffering utility, which allows you to use Statil directly.
## Installation and Usage
```sh
npm i gulp-statil
```
In your `gulpfile.js`:
```js
const {withBufferedContents} = require('gulp-statil')
const {createSettings, renderSettings} = require('statil')
gulp.task('templates', () => (
gulp.src('src/html/**/*')
.pipe(withBufferedContents(templates => (
renderSettings(createSettings(templates, {}))
)))
.pipe(gulp.dest('dist'))
))
```