bloggify-js-renderer

1.0.2 • Public • Published

bloggify-js-renderer

Version Downloads

JS renderer for Bloggify.

☁️ Installation

$ npm i --save bloggify-js-renderer

After installing the module, make sure you add bloggify-js-renderer in the plugins list.

📋 Example

// The js views should export a function
module.exports = (ctx, cb) => {
    cb(null, {
        users: [
            "Alice",
            "Bob"
        ]
    });
};

❓ Get Help

There are few ways to get help:

  1. Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
  2. For bug reports and feature requests, open issues. 🐛
  3. For direct and quick help from me, you can use Codementor. 🚀

📝 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.

😋 How to contribute

Have an idea? Found a bug? See how to contribute.

📜 License

MIT © Bloggify

/bloggify-js-renderer/

    Package Sidebar

    Install

    npm i bloggify-js-renderer

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • ionicabizau