oj-mustache

0.7.3 • Public • Published

oj.mustache

A mustache plugin for oj. In a perfect world you wouldn't need mustache when you have oj. Well the world isn't perfect. Good luck out there.

Usage

oj.mustache """
  <html>
    <body>
      Hi, my name is {{name}}. My twitter handle is @{{twitter}}
    </body>
  </html>
""", name: 'Evan', twitter:'evanmoran'

Note: You can pass the arguments in any order. Objects will be unioned into a view. The string will be assumed to be a template.

Docs

ojjs.org/plugins#mustache

Readme

Keywords

none

Package Sidebar

Install

npm i oj-mustache

Weekly Downloads

0

Version

0.7.3

License

none

Last publish

Collaborators

  • evanmoran