1.0.0 • Published 7 years ago

@simonlc/gulp-ssi v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

gulp-ssi

NPM version Build Status

Server Side Includes parser plugin for gulp

Works with both include types

<!--#include file="includes/navigation.html" -->
<!--#include virtual="../templates/navigation.html" -->

Usage

First, install gulp-ssi as a development dependency:

npm install --save-dev gulp-ssi

Then, add it to your gulpfile.js:

var ssi = require("gulp-ssi");

gulp.src("./src/*.ext")
	.pipe(ssi({
		root: '/my-pages'
	}))
	.pipe(gulp.dest("./dist"));

Options

root (optional)

Type: String
Default: File directory

Set the location where the linked files are hosted.

License

MIT License