An open API service indexing awesome lists of open source software.

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.

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'))
))
```