1.0.2 • Published 7 years ago

bloggify-js-renderer v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

bloggify-js-renderer

Version Downloads

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:

  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. :bug:
  3. 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.

:scroll: License

MIT © Bloggify

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago