Static function - misonou/waterpipe GitHub Wiki
A pipe function is simply a normal function declared on waterpipe.pipes. The first argument is the piped value; while the remaining arguments are taken from the pipe.
waterpipe.pipes.bark = function (name, pet) {
return name + '\'s ' + pet + ' barks!';
};{{name}} ➜ John
{{pet}} ➜ dog
{{name bark pet}} ➜ John's dog barks!