sps / mustache-spring-view

java spring framework mvc view for Mustache.js templates
68 stars 31 forks source link

Implemented i18n.MustacheMessageInterceptor #5

Closed smokku closed 11 years ago

smokku commented 11 years ago

This interceptor injects Lambda object to View Model that allows easy access to default messageSource. Based on Eric D. White's mustache.java-spring-webmvc implementation.

Unfortunately this implementation requires Mustache.Lambda interface support that is being submitted at https://github.com/samskivert/jmustache/pull/24

sps commented 11 years ago

Hi Tomasz,

Given that this is gated on samskivert/jmustache#24, I will wait until that patch is accepted before I merge this in.

Thanks for this patch!

smokku commented 11 years ago

I added a setter for viewResolver and updated the patch.