bloggify-js-renderer
v1.0.2
Published
JS renderer for Bloggify.
Downloads
6
Readme
bloggify-js-renderer
JS renderer for Bloggify.
:cloud: Installation
$ npm i --save bloggify-js-renderer
After installing the module, make sure you add bloggify-js-renderer
in the plugins
list.
:clipboard: Example
// The js views should export a function
module.exports = (ctx, cb) => {
cb(null, {
users: [
"Alice",
"Bob"
]
});
};
:question: Get Help
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. :bug:
- For direct and quick help from me, you can use Codementor. :rocket:
:memo: Documentation
render(ctx, path, data, cb)
Renders the file.
Params
- ctx
ctx
: The context. - String
path
: The file path. - Object
data
: The template data. - Function
cb
: The callback function.
:yum: How to contribute
Have an idea? Found a bug? See how to contribute.