Title
Date
Author
Comments
March 25th, 2011
radu

Lately I had to do more work with ExtJS x-templates, and really found them very flexible. One feature I find useful is the support for formatting functions. So you can have a template which outputs different things for plural and singular forms:

new Ext.XTemplate(‘{0:plural(“record”,”records”)} deleted’).apply([4])
// -> 4 records deleted

This is nice. Yet the formatting functions are [...]