/sourcejs-tpl-middleware

Middleware starting template.

Primary LanguageJavaScriptMIT LicenseMIT

SourceJS Plugin template

Demo of basic SourceJS Middleware structure. Read more about Middleware development in docs http://sourcejs.com/docs/api/plugins.

Compatible with SourceJS ~0.4.0.

To create new SourceJS Middleware, we recommend using the official generator - https://github.com/sourcejs/generator-sourcejs.

Middleware install instructions example

To install middleware, run npm command in sourcejs/user folder:

npm install sourcejs-tpl-plugin --save

After restarting your app, middleware will be loaded automatically. To disable it, remove npm module and restart the app.

More examples