I have the following TileMill Teaser defined:
Phone: {{{PHONE}}}
The phone data is numeric with 10 digit phone numbers. I want to format it on-the-fly using lambda expression as follows:
Phone: {{#formatPhone}}{{PHONE}}{{/formatPhone}}
In a hash, I know that formatPhone can be defined as follows:
"formatPhone" : function () {
return function(phone) {
// Do formatting here ...
return phone;
}
}
What I don't know is how to define the Lambda function within the TileMill teaser interface.
Any assistance is greatly appreciated.
Thank you