开发者

How to use google closure templates for rendering html views in Spring MVC application?

开发者 https://www.devze.com 2023-02-25 15:36 出处:网络
I am building a RESTFul web application using SpringMVC.For the html views, I intend to use Google开发者_如何学C Closure templates.

I am building a RESTFul web application using SpringMVC.For the html views, I intend to use Google开发者_如何学C Closure templates.

Need suggestions on the approach, in case any one in the forum has had this architecture OR even has used google closure templates with a java based web application.

Regards,

AbhishekD


I have just released an initial version of my integration library for Closure Templates and Spring MVC: https://github.com/tomakehurst/spring-closure-templates

See the wiki for some brief instructions on how to include in your project, and the example app in the source project for a complete example.

In answer to the question below about localisation support, I can quite easily add this if it's going to be of use to anyone. Please message me on GitHub if you have any requests such as this.


While i wait for answers/suggestions, thought of proceeding with this approach -

For rendering html output use the Closure Templates as Spring View Resolver components. (Similar to FreeMarkerViewResolver)

0

精彩评论

暂无评论...
验证码 换一张
取 消