I'm using Plovr and would like to use my own custom function (specifically a ucfirst function) inside templates. At the moment I'm only interested in rendering the templates as javascript, and since this is a fairly simple case I think actually writing the code shouldn't be too much of an issue (using a Plovr-included custom function as a starting point).
The question then becomes: how do I build it and use it with Plovr?