webpipes / block-formatter

Converts Mustache template and input keys into an output string.

Repository from Github https://github.comwebpipes/block-formatterRepository from Github https://github.comwebpipes/block-formatter

Formatter Action Block

Takes two inputs: "template" and "*" meaning it can take any input keys. It uses those keys with the template to produce an output string.

Example Usage

curl -v -X OPTIONS http://block-formatter.herokuapp.com

curl -i -X POST -d '{"inputs":[{"template":"Hello {{name}}!", "name":"Matthew"}]}' -H "Content-Type: application/json" http://block-formatter.herokuapp.com

About

Converts Mustache template and input keys into an output string.


Languages

Language:JavaScript 100.0%