JS renderer for Bloggify.
$ npm i --save bloggify-js-renderer
After installing the module, make sure you add bloggify-js-renderer
in the plugins
list.
// The js views should export a function
module.exports = (ctx, cb) => {
cb(null, {
users: [
"Alice",
"Bob"
]
});
};
There are few ways to get help:
- Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
- For bug reports and feature requests, open issues. 🐛
- For direct and quick help from me, you can use Codementor. 🚀
Renders the file.
-
ctx
ctx
: The context. -
String
path
: The file path. -
Object
data
: The template data. -
Function
cb
: The callback function.
Have an idea? Found a bug? See how to contribute.