1.2.4 • Published 9 years ago
hubot-render v1.2.4
hubot-render
A hubot script to render mustache templates.
See src/render.coffee
for full documentation.
Installation
In hubot project repo, run:
npm install hubot-remember-multiline --save
npm install hubot-render --save
Then add hubot-render to your external-scripts.json
:
[
"hubot-remember-multiline",
"hubot-render"
]
Sample Interaction
user1>> hubot remember tmpl1 is
{{title}} spends {{calc}}
user1>> hubot render tmpl1 title:Joe, calc:6
hubot>> Joe spends 6
See ./test/*.coffee for more examples.