Added valueFunc/formatter support for template