spullara/mustache.java — pull request #42 by mcheely (2012-08-01 20:13:30+00:00)
Title: Make object -> string conversion extendable

This is a small tweak that would allow extensions to valueCode that alter the way objects are converted to strings when directly displayed on the page.

For us this is useful because Spring has out-of-the-box mechanisms for converting objects to localized string versions and vice-versa. Our code becomes much simpler when we can rely on this conversion when rendering the templates rather than having to manually inject and call the formatting tools in every controller or viewmodel.