@simonlc/gulp-ssi

1.0.0 • Public • Published

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

/@simonlc/gulp-ssi/

    Package Sidebar

    Install

    npm i @simonlc/gulp-ssi

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    6.43 kB

    Total Files

    8

    Last publish

    Collaborators

    • simonlc