Express middleware to render Server Side Includes
Express-style middleware to process SSI directives.
The only command currentl implemented is #include
which supports both static files and virtual paths which are fetched via HTTP(S).
<!--#include file="/static.txt"--> <!--#include virtual="/dynamic"-->
Usage
See the basic usage example below. In order to resolve static files the baseDir
option has to be provided, respectively baseUrl
to resolve virtual paths.
const express = ; const ssi = ; const app = ; const port = 3000; app; app;
License
MIT