Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

ikuo/hubot-render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hubot-render

npm version Build Status

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.

About

A hubot script to render mustache templates

Resources

Stars

Watchers

Forks

Packages

No packages published