Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 733 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 733 Bytes

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