express-titles
A simple express middleware to manage website title with prefix and suffix control.
Installation
$ npm install express-titles
Usage
Basic example:
//-- app.jsvar express = app = ;var title = app; //-- layout configuration... app
//-- index.jadedoctype htmlhtml head title!= title body //-- ...
Global prefix/suffix:
All you really need to do is to set it in the app:
//-- app.js //-- ...app;app;//-- ...
You may want to change the separator so:
//-- app.js //-- ...app;//-- ...
Middleware options
You can set options through the middleware.
prefix
- Prefix of the page (true
||false
||String
)suffix
- Suffix of the page (true
||false
||String
)ps
- Separator (String
)
Example:
//-- app.js //-- ...app;app; app
License
MIT