connect-ssiinclude
v0.0.2
Published
enable ssi include in html and shtml files
Downloads
7
Maintainers
Readme
connect-ssiinclude
A middle ware for enable ssi include patterns in your html and shtml files. It's very useful during developments when you write html files in the way of modules.
It will replace pattern like <!--#include virtual="./mod/header.html"--> with the actual header.html file and transfer
to your browser.
Install
$ npm install --save connect-ssiinclude Usage
var include = require('connect-ssiinclude');
app.use(include({root: __dirname}));Option
include(option) // use a option object to config connect-include
{
root: __dirname,
encoding: "your encoding charset", // default to 'utf8'
print: "whether to print the include information" // default to 'false'
}